From 51f7d8fd5c53556c920fe3e6c7a1726a5ecb907c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Apr 2021 01:28:17 +0100 Subject: [PATCH] drag select: cancel selection indication properly Signed-off-by: Ian Jackson --- templates/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2