chiark / gitweb /
script: multigrab even when the piece is held already
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2022 21:24:46 +0000 (22:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2022 21:38:31 +0000 (22:38 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts

index 998ba2902573e07cc2573be4d4564e671126bdc5..a01b19df483ef870ed60fa2f7653c34af12a8143 100644 (file)
@@ -1244,7 +1244,7 @@ function mouseclick_core(c: MouseFoundClicked, shifted: boolean,
   let multigrab = c.multigrab;
 
   drag_pieces = [];
-  if (held == us) {
+  if (held == us && multigrab == null) {
     if (shifted) {
       ungrab_clicked(clicked);
       return;