From: Ian Jackson Date: Wed, 14 Apr 2021 00:28:17 +0000 (+0100) Subject: drag select: cancel selection indication properly X-Git-Tag: otter-0.5.0~76 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=51f7d8fd5c53556c920fe3e6c7a1726a5ecb907c;p=otter.git drag select: cancel selection indication properly Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 14d1d8f1..2dfc468c 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -1273,7 +1273,7 @@ function rectsel_mouseup(e: MouseEvent) { console.log('rectsel mouseup'); window.removeEventListener('mousemove', rectsel_mousemove, true); window.removeEventListener('mouseup', rectsel_mouseup, true); - rectsel_path.setAttributeNS(null,'path',''); + rectsel_path.firstElementChild!.setAttributeNS(null,'d',''); let pos2 = rectsel_nontrivial_pos2(e); let note_already = Object.create(null);