From c14301a1ff8fe276c54804027c85fbdb0c961ee3 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 6 Mar 2016 12:51:07 +0000 Subject: [PATCH] Fix text selection while dragging editor splitter --- src/gui/html/elements/loot-plugin-editor.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/html/elements/loot-plugin-editor.html b/src/gui/html/elements/loot-plugin-editor.html index 48c9c1a6..06e074df 100644 --- a/src/gui/html/elements/loot-plugin-editor.html +++ b/src/gui/html/elements/loot-plugin-editor.html @@ -253,6 +253,7 @@ loot-editor-close } else if (evt.detail.state === 'end') { this.parentNode.host.classList.toggle('resizing', false); } + window.getSelection().removeAllRanges(); this.parentNode.host.style.height = (parseInt(this.parentNode.host.style.height, 10) - evt.detail.ddy) + 'px'; },