Skip to content

Commit 9ddc959

Browse files
committed
Fixes UI re-rendering for piece being dropped outside of table
1 parent 5d1b643 commit 9ddc959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/boardui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function RedrawBoard() {
340340

341341
table.appendChild(tbody);
342342

343-
$(table).droppable({ drop: dropPiece });
343+
$('body').droppable({ drop: dropPiece });
344344
$(table).mousedown(function(e) {
345345
if (g_selectedPiece !== null) {
346346
dropPiece(e);

0 commit comments

Comments
 (0)