chiark / gitweb /
allow wresting of held pieces
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 00:00:17 +0000 (01:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 00:00:17 +0000 (01:00 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts

index e4ada29521372ea1942feb374f19b7a838336bdf..0dd6f78d48d1f1f271dbdcae35fbcb1b50cf6a3a 100644 (file)
@@ -613,7 +613,7 @@ function drag_mousedown(e : MouseEvent, shifted: boolean) {
       if (tp.held != us) continue;
       drag_add_piece(tpiece,tp);
     }
-  } else if (held == null) {
+  } else if (held == null || wresting) {
     if (p.pinned && !wresting) {
       add_log_message('That piece is pinned to the table.');
       return;