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:
e7b8276
)
script: Do not re-raise things that were explicitly lowered
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 5 Jul 2021 21:00:45 +0000
(22:00 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 6 Jul 2021 00:28:24 +0000
(
01:28
+0100)
This fixes an annoying UI issue where if you would lower a thing while
dragging it, the auto-raie on release would still happen, re-raising
it.
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 df9d2b782d6333fd744ffffa4fb2f020bc15bb5b..e2ebea8686d2685570e5e15c034344393dbee5e2 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-752,6
+752,7
@@
function lower_pieces(targets_todo: LowerTodoList):
pe, z_bot, z_top, pe.content.length, zrange.debug());
for (const e of pe.content) {
let p = e.p;
+ p.held_us_raising = "Lowered";
piece_set_zlevel(e.piece, p, (oldtop_piece) => {
let z = zrange.next();
p.z = z;