You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b62b39f
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix: Apply reversed axis flip by macOS on Web when scroll with modifier keys (flutter#189506)
/// Creates a synthetic DOM `WheelEvent` for testing. It inherits from DOM
3685
+
/// `MouseEvent` and `Event` classes.
3686
+
/// See MDN: https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent
3687
+
///
3688
+
/// [buttons] is a bitmask of pressed mouse buttons (0 = none, 1 = primary,
3689
+
/// 2 = secondary). See MDN: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
3690
+
///
3691
+
/// [clientX] and [clientY] are the pointer position in CSS pixels relative
3692
+
/// to the viewport. See MDN: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX
3693
+
///
3694
+
/// [deltaX] and [deltaY] are the horizontal and vertical scroll distances in
3695
+
/// pixels (positive = right/down). See MDN: https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX
3696
+
///
3697
+
/// [wheelDeltaX] and [wheelDeltaY] are the legacy equivalents of [deltaX]
3698
+
/// and [deltaY] with opposite sign, only available in Chromium-based browsers
3699
+
/// (absent in Firefox).
3700
+
///
3701
+
/// [timeStamp] overrides the browser-assigned event time in milliseconds.
3702
+
/// It must be set via a property descriptor because it cannot be passed
3703
+
/// through the constructor. See MDN: https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp
3704
+
///
3705
+
/// [ctrlKey] signals a pinch-to-zoom gesture. The browser sets this even when
3706
+
/// "Ctrl" is not physically held. Flutter uses it to emit
3707
+
/// [ui.PointerSignalKind.scale] instead of [ui.PointerSignalKind.scroll],
3708
+
/// unless the physical "Ctrl" key is also down.
3709
+
/// See MDN: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey
3710
+
///
3711
+
/// [shiftKey] emulates a left or right "Shift" key press.
3712
+
/// See MDN: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey
3626
3713
DomEventwheel({
3627
3714
requiredint? buttons,
3628
3715
requireddouble? clientX,
@@ -3633,6 +3720,7 @@ mixin _ButtonedEventMixin on _BasicEventContext {
0 commit comments