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:
389138d
)
wip g
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Jun 2020 14:58:25 +0000
(15:58 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 14 Jun 2020 14:58:25 +0000
(15:58 +0100)
templates/script.js
patch
|
blob
|
history
diff --git
a/templates/script.js
b/templates/script.js
index 030a59a58341642c7a83828171601847942d4af7..9efe273da75b8aec9f4c3b0f86407038563545a8 100644
(file)
--- a/
templates/script.js
+++ b/
templates/script.js
@@
-16,7
+16,8
@@
function drag_mousedown(e) {
drag_cancel();
console.log('mousedown', e);
delt = e.target;
- if (!qdelt.dataset.p) { return; }
+ if (!delt.dataset.p) { return; }
+ if (delt.dataset.g) { return; }
dcx = e.clientX;
dcy = e.clientY;
dox = parseFloat(delt.getAttributeNS(null,"x"));