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:
cdd1335
)
Click on background clears yellow haloes
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 3 Apr 2021 17:27:15 +0000
(18:27 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Apr 2021 19:07:53 +0000
(20:07 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index c92f13cfae975025236a1e56caf56b2cb9a15a64..fd6828361cb331f5b1587420d099e00b9d8c069b 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-735,6
+735,11
@@
function drag_mousedown(e : MouseEvent, shifted: boolean) {
var piece = target.dataset.piece!;
if (!piece) {
if (!shifted) {
+ let mr;
+ while (mr = movements.pop()) {
+ mr.p.last_seen_moved = null;
+ redisplay_ancillaries(mr.piece, mr.p);
+ }
ungrab_all();
}
return;