Index: samples/ui_lib/touch/Scroller.dart |
diff --git a/samples/ui_lib/touch/Scroller.dart b/samples/ui_lib/touch/Scroller.dart |
index 54304cb26fd2fb5ced07973737bfcd08c621b075..64210e9ce6f8e0f2716f089f819d221e041aacfc 100644 |
--- a/samples/ui_lib/touch/Scroller.dart |
+++ b/samples/ui_lib/touch/Scroller.dart |
@@ -161,10 +161,10 @@ class Scroller implements Draggable, MomentumDelegate { |
_touchHandler.enable(capture); |
_frame.on.mouseWheel.add((e) { |
- if (e.wheelDeltaY != 0 && verticalEnabled || |
- e.wheelDeltaX != 0 && horizontalEnabled) { |
- num x = horizontalEnabled ? e.wheelDeltaX : 0; |
- num y = verticalEnabled ? e.wheelDeltaY : 0; |
+ if (e.deltaY != 0 && verticalEnabled || |
+ e.deltaX != 0 && horizontalEnabled) { |
+ num x = horizontalEnabled ? e.deltaX : 0; |
+ num y = verticalEnabled ? e.deltaY : 0; |
throwDelta(x, y, FAST_SNAP_DECELERATION_FACTOR); |
e.preventDefault(); |
} |