From 7e6354fbb07ea3a66922943661e730eeaa00c140 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 6 Jul 2020 18:35:23 +0100 Subject: [PATCH] grab and ungrab --- templates/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script.js b/templates/script.js index c554986a..1b1ab39a 100644 --- a/templates/script.js +++ b/templates/script.js @@ -255,7 +255,7 @@ pieceops.Modify = function (piece, info) { uelem.setAttributeNS(null, "x", info.pos[0]); uelem.setAttributeNS(null, "y", info.pos[1]); // xxx do something about conflict - if (info.held == '') { + if (info.held == null) { set_ungrab(uelem, piece); } else { set_grab(uelem, piece, info.held); -- 2.30.2