From 5af034b765986ae0c8e9aac01118118a3353968a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 9 Oct 2023 19:08:19 +0300 Subject: [PATCH] fixed a bug... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index e12cbf3..430df12 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -613,7 +613,7 @@ var Outline = { // NOTE: clicking outside the element to the right i.e. on :after/:before if(elem.nodeName == 'DIV' && elem.getAttribute('tabindex') - && evt.clientX > elem.offsetWidth){ + && elem.offsetWidth < evt.offsetX){ that.toggleCollapse(elem) } // todo: toggle checkbox... if(elem.classList.contains('todo')){