Skip to content

Commit

Permalink
Merge pull request #694 from ajsosa/comment-setstate
Browse files Browse the repository at this point in the history
Limit set state on isOverridingSwipeGestureAction in comment_card
  • Loading branch information
micahmo committed Aug 29, 2023
2 parents e5fa563 + 48cfb3f commit 736d741
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/post/widgets/comment_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ class _CommentCardState extends State<CommentCard> with SingleTickerProviderStat
behavior: HitTestBehavior.opaque,
onPointerDown: (event) => {},
onPointerUp: (event) {
setState(() => isOverridingSwipeGestureAction = false);
if (isOverridingSwipeGestureAction) {
setState(() => isOverridingSwipeGestureAction = false);
}

if (swipeAction != null && swipeAction != SwipeAction.none) {
triggerCommentAction(
Expand Down

0 comments on commit 736d741

Please sign in to comment.