diff options
Diffstat (limited to 'node_modules/react-dom/lib/SyntheticWheelEvent.js')
-rw-r--r-- | node_modules/react-dom/lib/SyntheticWheelEvent.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/node_modules/react-dom/lib/SyntheticWheelEvent.js b/node_modules/react-dom/lib/SyntheticWheelEvent.js index e3ac8f9fa..2ef895075 100644 --- a/node_modules/react-dom/lib/SyntheticWheelEvent.js +++ b/node_modules/react-dom/lib/SyntheticWheelEvent.js @@ -18,15 +18,12 @@ var SyntheticMouseEvent = require('./SyntheticMouseEvent'); */ var WheelEventInterface = { deltaX: function (event) { - return 'deltaX' in event ? event.deltaX : - // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). + return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; }, deltaY: function (event) { - return 'deltaY' in event ? event.deltaY : - // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). - 'wheelDeltaY' in event ? -event.wheelDeltaY : - // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). + return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). + 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). 'wheelDelta' in event ? -event.wheelDelta : 0; }, deltaZ: null, |