Skip to content

Commit

Permalink
switched back to mousedown
Browse files Browse the repository at this point in the history
fixed some bishop issues :)
  • Loading branch information
Saturnyn committed Sep 3, 2015
1 parent 4decbea commit 3ac2ce2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Binary file added bin-debug/bin-debug.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion bin-debug/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ aa.add( 'die', 1,
//11 bishop field
block(
'',
' p p p',
'b b b b',
'',
'',
Expand Down Expand Up @@ -2394,7 +2395,7 @@ aa.add( 'die', 1,
mouse.click = isClick;
document.onmousemove(e);
}
document.onclick = function(e){
document.onmousedown = function(e){
onmouse(true,e);
};
document.onmousemove = function(e){
Expand Down
Binary file added bin-release/bin-release.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion bin-release/game.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ window.onload = function(){
//11 bishop field
block(
'',
' p p p',
'b b b b',
'',
'',
Expand Down Expand Up @@ -2284,7 +2285,7 @@ window.onload = function(){
mouse.click = isClick;
document.onmousemove(e);
}
document.onclick = function(e){
document.onmousedown = function(e){
onmouse(true,e);
};
document.onmousemove = function(e){
Expand Down

0 comments on commit 3ac2ce2

Please sign in to comment.