From: Ian Jackson Date: Mon, 6 Jul 2020 17:35:23 +0000 (+0100) Subject: grab and ungrab X-Git-Tag: otter-0.2.0~1420 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7e6354fbb07ea3a66922943661e730eeaa00c140;p=otter.git grab and ungrab --- 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);