Closed hayashikun closed 8 months ago
I can scroll with the mouse wheel, but I cannot with the trackpad.
This is because scroll events from the trackpad are sent via onPointerPanZoomUpdate, not onPointerSignal. https://docs.flutter.dev/release/breaking-changes/trackpad-gestures
By sending the amount of scroll, panDelta in PointerPanZoomUpdateEvent, to the webview, I can scroll with the trackpad.
panDelta
PointerPanZoomUpdateEvent
Related issues: https://github.com/jnschulze/flutter-webview-windows/issues/258
This is a fantastic find. Hopefully it can get merged soon. Cheers!
I can scroll with the mouse wheel, but I cannot with the trackpad.
This is because scroll events from the trackpad are sent via onPointerPanZoomUpdate, not onPointerSignal. https://docs.flutter.dev/release/breaking-changes/trackpad-gestures
By sending the amount of scroll,
panDelta
inPointerPanZoomUpdateEvent
, to the webview, I can scroll with the trackpad.Related issues: https://github.com/jnschulze/flutter-webview-windows/issues/258