Skip to content

Commit 2dee0d2

Browse files
authored
Convert mousewheel+Control events to pointerdata on non MacOS as well (flutter#23597)
1 parent 250dcd5 commit 2dee0d2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/web_ui/lib/src/engine/pointer_binding.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,15 @@ mixin _WheelEventListenerMixin on _BaseAdapter {
302302
if (_debugLogPointerEvents) {
303303
print(event.type);
304304
}
305+
_callback(_convertWheelEventToPointerData(event));
305306
if (event.getModifierState('Control') &&
306307
operatingSystem != OperatingSystem.macOs &&
307308
operatingSystem != OperatingSystem.iOs) {
308309
// Ignore Control+wheel events since the default handler
309310
// will change browser zoom level instead of scrolling.
310-
// The exception is MacOs where Control+wheel will still scroll and zoom
311-
// is not implemented.
311+
// The exception is MacOs where Control+wheel will still scroll and zoom.
312312
return;
313313
}
314-
_callback(_convertWheelEventToPointerData(event));
315314
// Prevent default so mouse wheel event doesn't get converted to
316315
// a scroll event that semantic nodes would process.
317316
//

0 commit comments

Comments
 (0)