Skip to content

Commit bf6bb71

Browse files
authored
enable scrolling with Trackpad (#274)
1 parent 15c4a03 commit bf6bb71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/webview.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,10 @@ class _WebviewState extends State<Webview> {
708708
-signal.scrollDelta.dx, -signal.scrollDelta.dy);
709709
}
710710
},
711+
onPointerPanZoomUpdate: (signal) {
712+
_controller._setScrollDelta(
713+
signal.panDelta.dx, signal.panDelta.dy);
714+
},
711715
child: MouseRegion(
712716
cursor: _cursor,
713717
child: Texture(

0 commit comments

Comments
 (0)