Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c94a953

Browse files
committed
Increase allowed time delay on event to 50 ms
1 parent d41a890 commit c94a953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/platform/darwin/macos/framework/Source/FlutterViewController.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,8 @@ - (void)swipeWithEvent:(NSEvent*)event {
842842
- (void)touchesBeganWithEvent:(NSEvent*)event {
843843
NSTouch* touch = event.allTouches.anyObject;
844844
if (touch != nil) {
845-
if ((event.timestamp - _mouseState.last_scroll_momentum_changed_time) < 0.010) {
846-
// The trackpad has been touched within 10 ms following a scroll momentum event.
845+
if ((event.timestamp - _mouseState.last_scroll_momentum_changed_time) < 0.050) {
846+
// The trackpad has been touched within 50 ms following a scroll momentum event.
847847
// A scroll inertia cancel message should be sent to the framework.
848848
NSPoint locationInView = [self.flutterView convertPoint:event.locationInWindow fromView:nil];
849849
NSPoint locationInBackingCoordinates =

0 commit comments

Comments
 (0)