Disable selection scroll on key pressed

Resolve #570.
This commit is contained in:
Hyunje Jun 2016-10-18 16:01:03 +09:00
parent c7ddde69c2
commit aa63ff0370

View File

@ -55,6 +55,12 @@ function bindSelectionHandler(element, i) {
stopScrolling(); stopScrolling();
} }
}); });
i.event.bind(window, 'keyup', function () {
if (isSelected) {
isSelected = false;
stopScrolling();
}
});
i.event.bind(window, 'mousemove', function (e) { i.event.bind(window, 'mousemove', function (e) {
if (isSelected) { if (isSelected) {