From 760c7e3e0da5c1b1a57d887bf16c9f5149e2eb5f Mon Sep 17 00:00:00 2001 From: benweet Date: Thu, 5 Apr 2018 19:29:32 +0100 Subject: [PATCH] Fixed triple click on firefox --- src/services/cledit/cleditSelectionMgr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/cledit/cleditSelectionMgr.js b/src/services/cledit/cleditSelectionMgr.js index c2183976..b8cb0609 100644 --- a/src/services/cledit/cleditSelectionMgr.js +++ b/src/services/cledit/cleditSelectionMgr.js @@ -166,7 +166,7 @@ function SelectionMgr(editor) { let previousSibling = node.previousSibling; while (previousSibling) { i += 1; - previousSibling = node.previousSibling; + previousSibling = previousSibling.previousSibling; } return i; }