aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjonas echterhoff <jonas@unity3d.com>2014-05-11 20:57:42 +0200
committerjonas echterhoff <jonas@unity3d.com>2014-05-11 20:57:42 +0200
commit87134a2855cb62d2fb5e189ea82be9eb0815cd9e (patch)
tree637ea2ca8c77669d9ecfc7c455deba5e05b70f63 /src
parent524e0b0f4f8836f77e789832a7dacb8f339c88d2 (diff)
Code conventions and sign fix according to pull request feedback
Diffstat (limited to 'src')
-rw-r--r--src/library_browser.js5
1 files changed, 2 insertions, 3 deletions
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;