From c97a7db2adced6510e61c83d24e7b00cbabf8850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Galambosi?= Date: Sat, 26 Nov 2016 23:00:34 +0100 Subject: [PATCH] remove "touchpadSupport" legacy option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit touchpad is best “supported” by not messing with it (so keeping this option disabled) --- SmoothScroll.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SmoothScroll.js b/SmoothScroll.js index adda858..eb01e52 100644 --- a/SmoothScroll.js +++ b/SmoothScroll.js @@ -38,7 +38,6 @@ var defaultOptions = { arrowScroll : 50, // [px] // Other - touchpadSupport : false, // ignore touchpad by default fixedBackground : true, excluded : '' }; @@ -349,7 +348,7 @@ function wheel(event) { } // check if it's a touchpad scroll that should be ignored - if (!options.touchpadSupport && isTouchpad(deltaY)) { + if (isTouchpad(deltaY)) { return true; }