From aa63ff03707e85a8470a61ace6f3e6ff51204782 Mon Sep 17 00:00:00 2001 From: Hyunje Jun Date: Tue, 18 Oct 2016 16:01:03 +0900 Subject: [PATCH] Disable selection scroll on key pressed Resolve #570. --- src/js/plugin/handler/selection.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/plugin/handler/selection.js b/src/js/plugin/handler/selection.js index 297b2c9..705420f 100644 --- a/src/js/plugin/handler/selection.js +++ b/src/js/plugin/handler/selection.js @@ -55,6 +55,12 @@ function bindSelectionHandler(element, i) { stopScrolling(); } }); + i.event.bind(window, 'keyup', function () { + if (isSelected) { + isSelected = false; + stopScrolling(); + } + }); i.event.bind(window, 'mousemove', function (e) { if (isSelected) {