chiark / gitweb /
regrab: Enable regrab (when not wresting)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Jul 2021 17:02:12 +0000 (18:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Jul 2021 18:41:53 +0000 (19:41 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts

index fc4dcd0b10d985b1c622ec3fc0f064b51fa6db9c..fe80192d63174793be6da38fefa36014218e5bc0 100644 (file)
@@ -1101,7 +1101,7 @@ function drag_mousedown(e : MouseEvent, shifted: boolean) {
       add_log_message('That piece is pinned to the table.');
       return;
     }
-    grab_clicked(clicked, false);
+    grab_clicked(clicked, !wresting);
     drag_start_prepare(DRAGGING.MAYBE_GRAB);
   } else {
     add_log_message('That piece is held by another player.');