diff --git a/lib/view/pages/talk/components/chatBubble.dart b/lib/view/pages/talk/components/chatBubble.dart index ab1975f..6e72b52 100644 --- a/lib/view/pages/talk/components/chatBubble.dart +++ b/lib/view/pages/talk/components/chatBubble.dart @@ -282,14 +282,15 @@ class _ChatBubbleState extends State with SingleTickerProviderStateM if(!widget.bubbleData.isReplyable) return; var dx = details.delta.dx - _dragStartPosition.dx; setState(() { - _position = (_position.dx + dx).abs() > 30 ? Offset(_position.dx, 0) : Offset(_position.dx + dx, 0); + _position = (_position.dx + dx).abs() > 60 ? Offset(_position.dx, 0) : Offset(_position.dx + dx, 0); }); }, onHorizontalDragEnd: (DragEndDetails details) { + var isAction = _position.dx.abs() > 50; setState(() { _position = const Offset(0, 0); }); - if(widget.bubbleData.isReplyable) { + if(widget.bubbleData.isReplyable && isAction) { Provider.of(context, listen: false).setReferenceMessageId(widget.bubbleData.id, context, widget.chatData.token); } },