Fix delta calculation in mouswheel handler

Remove division by 10, makes scrolling slower than in previous versions.
Reverts 88d286957766e981a4f4c720f213164fc0f3f099
This commit is contained in:
Rupert Angermeier 2014-02-28 10:02:26 +01:00 committed by Hyunje Alex Jun
parent bc6ef6480a
commit 0544fe7241

View File

@ -273,8 +273,8 @@
var bindMouseWheelHandler = function () { var bindMouseWheelHandler = function () {
var shouldPrevent = false; var shouldPrevent = false;
$this.bind('mousewheel' + eventClassName, function (e, deprecatedDelta, deprecatedDeltaX, deprecatedDeltaY) { $this.bind('mousewheel' + eventClassName, function (e, deprecatedDelta, deprecatedDeltaX, deprecatedDeltaY) {
var deltaX = e.deltaX ? e.deltaX / 10 : deprecatedDeltaX, var deltaX = e.deltaX || deprecatedDeltaX,
deltaY = e.deltaY ? e.deltaY / 10 : deprecatedDeltaY; deltaY = e.deltaY || deprecatedDeltaY;
if (!settings.useBothWheelAxes) { if (!settings.useBothWheelAxes) {
// deltaX will only be used for horizontal scrolling and deltaY will // deltaX will only be used for horizontal scrolling and deltaY will