From 87134a2855cb62d2fb5e189ea82be9eb0815cd9e Mon Sep 17 00:00:00 2001 From: jonas echterhoff Date: Sun, 11 May 2014 20:57:42 +0200 Subject: Code conventions and sign fix according to pull request feedback --- src/library_browser.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/library_browser.js b/src/library_browser.js index 4593f203..2317ca47 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -479,13 +479,12 @@ mergeInto(LibraryManager.library, { getMouseWheelDelta: function(event) { var delta = 0; - switch (event.type) - { + switch (event.type) { case 'DOMMouseScroll': delta = event.detail; break; case 'mousewheel': - delta = event.wheelDelta; + delta = -event.wheelDelta; break; case 'wheel': delta = event.deltaY; -- cgit v1.2.3-18-g5258