Skip to content

Commit d5069a6

Browse files
Remove minimum gesture duration for fling momentum, so that very brief fling gestures are honored (Resolves #40) (#41)
1 parent b717ea9 commit d5069a6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/src/page_list_viewport_gestures.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class _PageListViewportGesturesState extends State<PageListViewportGestures> wit
126126
}
127127

128128
void _onScaleUpdate(ScaleUpdateDetails details) {
129-
PageListViewportLogs.pagesList
129+
PageListViewportLogs.pagesListGestures
130130
.finer("onScaleUpdate() - new focal point ${details.focalPoint}, focal delta: ${details.focalPointDelta}");
131131
if (!_isPanning) {
132132
// The user is interacting with a stylus. We don't want to pan
@@ -413,11 +413,6 @@ class DeprecatedPanAndScaleVelocityTracker {
413413
}
414414
}
415415

416-
if (gestureDuration < const Duration(milliseconds: 40)) {
417-
PageListViewportLogs.pagesListGestures.fine(" - this gesture was too short to count. Ignoring.");
418-
return;
419-
}
420-
421416
if (_previousGesturePointerCount! > 1) {
422417
// The user was scaling. Now the user is panning. We don't want scale
423418
// gestures to contribute momentum, so we set the launch velocity to zero.

0 commit comments

Comments
 (0)