Convert mousewheel+Control events to pointerdata on non MacOS as well (flutter/engine#23597)
This commit is contained in:
@@ -302,16 +302,15 @@ mixin _WheelEventListenerMixin on _BaseAdapter {
|
|||||||
if (_debugLogPointerEvents) {
|
if (_debugLogPointerEvents) {
|
||||||
print(event.type);
|
print(event.type);
|
||||||
}
|
}
|
||||||
|
_callback(_convertWheelEventToPointerData(event));
|
||||||
if (event.getModifierState('Control') &&
|
if (event.getModifierState('Control') &&
|
||||||
operatingSystem != OperatingSystem.macOs &&
|
operatingSystem != OperatingSystem.macOs &&
|
||||||
operatingSystem != OperatingSystem.iOs) {
|
operatingSystem != OperatingSystem.iOs) {
|
||||||
// Ignore Control+wheel events since the default handler
|
// Ignore Control+wheel events since the default handler
|
||||||
// will change browser zoom level instead of scrolling.
|
// will change browser zoom level instead of scrolling.
|
||||||
// The exception is MacOs where Control+wheel will still scroll and zoom
|
// The exception is MacOs where Control+wheel will still scroll and zoom.
|
||||||
// is not implemented.
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_callback(_convertWheelEventToPointerData(event));
|
|
||||||
// Prevent default so mouse wheel event doesn't get converted to
|
// Prevent default so mouse wheel event doesn't get converted to
|
||||||
// a scroll event that semantic nodes would process.
|
// a scroll event that semantic nodes would process.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user