Make selection scroll optional

It's not essential but rather causes several problems.
This commit is contained in:
Hyunje Alex Jun
2015-10-03 21:37:24 +09:00
parent 002034fd54
commit 17e5f67519
4 changed files with 21 additions and 11 deletions
+4 -1
View File
@@ -31,7 +31,10 @@ module.exports = function (element, userSettings) {
dragScrollbarHandler(element);
mouseWheelHandler(element);
nativeScrollHandler(element);
selectionHandler(element);
if (i.settings.useSelectionScroll) {
selectionHandler(element);
}
if (h.env.supportsTouch || h.env.supportsIePointer) {
touchHandler(element, h.env.supportsTouch, h.env.supportsIePointer);