From 0544fe7241c2e61241b85127ef2199a7e630af08 Mon Sep 17 00:00:00 2001 From: Rupert Angermeier Date: Fri, 28 Feb 2014 10:02:26 +0100 Subject: [PATCH] Fix delta calculation in mouswheel handler Remove division by 10, makes scrolling slower than in previous versions. Reverts 88d286957766e981a4f4c720f213164fc0f3f099 --- src/perfect-scrollbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 51de8f0..1365d5b 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -273,8 +273,8 @@ var bindMouseWheelHandler = function () { var shouldPrevent = false; $this.bind('mousewheel' + eventClassName, function (e, deprecatedDelta, deprecatedDeltaX, deprecatedDeltaY) { - var deltaX = e.deltaX ? e.deltaX / 10 : deprecatedDeltaX, - deltaY = e.deltaY ? e.deltaY / 10 : deprecatedDeltaY; + var deltaX = e.deltaX || deprecatedDeltaX, + deltaY = e.deltaY || deprecatedDeltaY; if (!settings.useBothWheelAxes) { // deltaX will only be used for horizontal scrolling and deltaY will