From: Ian Jackson Date: Mon, 5 Jul 2021 21:00:45 +0000 (+0100) Subject: script: Do not re-raise things that were explicitly lowered X-Git-Tag: otter-0.7.2~253 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=006f86c9e1f01e020cf9c4981479c58b09ae25f9;p=otter.git script: Do not re-raise things that were explicitly lowered 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 --- diff --git a/templates/script.ts b/templates/script.ts index df9d2b78..e2ebea86 100644 --- 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;