Skip to content

Commit

Permalink
enable scrolling with Trackpad
Browse files Browse the repository at this point in the history
  • Loading branch information
hayashikun committed Jan 9, 2024
1 parent 7fd6873 commit 4953648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,10 @@ class _WebviewState extends State<Webview> {
-signal.scrollDelta.dx, -signal.scrollDelta.dy);
}
},
onPointerPanZoomUpdate: (signal) {
_controller._setScrollDelta(
signal.panDelta.dx, signal.panDelta.dy);
},
child: MouseRegion(
cursor: _cursor,
child: Texture(
Expand Down

0 comments on commit 4953648

Please sign in to comment.