Skip to content

Commit

Permalink
Dispatch overflow on drag if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
fujidaiti committed Jul 21, 2024
1 parent 67b0ab2 commit ecac0fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/lib/src/foundation/sheet_activity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ class DragSheetActivity extends SheetActivity
..setPixels(owner.metrics.pixels + physicsAppliedDelta)
..didDragUpdateMetrics(details);
}

final overflow =
owner.physics.computeOverflow(details.deltaY, owner.metrics);
if (overflow != 0) {
owner.didOverflowBy(overflow);
}
}

@override
Expand Down

0 comments on commit ecac0fb

Please sign in to comment.