Skip to content

Commit

Permalink
Merge pull request #435 from Popiron/fix/delete_threshold_not_respected
Browse files Browse the repository at this point in the history
fix: delete threshold is not respected
  • Loading branch information
letsar authored Jul 11, 2024
2 parents ec1a3e6 + c82bc66 commit 3f0010f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/dismissible_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class _DismissiblePaneState extends State<DismissiblePane> {
final endGesture = controller!.dismissGesture.value!.endGesture;
final position = controller!.animation.value;

if (endGesture is OpeningGesture ||
if (endGesture is OpeningGesture && position >= widget.dismissThreshold ||
endGesture is StillGesture && position >= widget.dismissThreshold) {
bool canDismiss = true;
if (widget.confirmDismiss != null) {
Expand Down

0 comments on commit 3f0010f

Please sign in to comment.