X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fchessboard-0.3.0.js;h=f69d0ed3802968a07c2ee533464565c82cb7a88e;hb=dc7fb3ce880439ad1c024681a437b1d2c599af86;hp=da71dc3409a665ec414f122e2353c2a8967666c8;hpb=8c66f9aba2a1a7533c4e013ba6d6b10001852d6f;p=remoteglot diff --git a/www/js/chessboard-0.3.0.js b/www/js/chessboard-0.3.0.js index da71dc3..f69d0ed 100644 --- a/www/js/chessboard-0.3.0.js +++ b/www/js/chessboard-0.3.0.js @@ -1247,7 +1247,7 @@ function mousedownSquare(e) { } // do nothing if we're not draggable - if (cfg.draggable) return; + if (!cfg.draggable) return; beginDraggingPiece(square, CURRENT_POSITION[square], e.pageX, e.pageY); } @@ -1259,7 +1259,7 @@ function touchstartSquare(e) { } // do nothing if we're not draggable - if (cfg.draggable) return; + if (!cfg.draggable) return; var square = target.getAttribute('data-square');