chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
311a82e
)
grab and ungrab
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 6 Jul 2020 17:35:23 +0000
(18:35 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 6 Jul 2020 17:35:23 +0000
(18:35 +0100)
templates/script.js
patch
|
blob
|
history
diff --git
a/templates/script.js
b/templates/script.js
index c554986ad0455cebc986271f46bcfb46e8548222..1b1ab39ac73074a0fab8bf5d9e7427a02ca6cfdd 100644
(file)
--- 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);