From 85b056f3d0b7f1a85bde9168746836bf4923ecd5 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Sun, 4 Jan 2026 08:19:36 +0100 Subject: [PATCH] fix(playlist): drag handle gesture conflict close #167 --- lib/screens/playlist/playlist_item_card.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/screens/playlist/playlist_item_card.dart b/lib/screens/playlist/playlist_item_card.dart index 204cebc8..a15274c9 100644 --- a/lib/screens/playlist/playlist_item_card.dart +++ b/lib/screens/playlist/playlist_item_card.dart @@ -54,12 +54,16 @@ class _PlaylistItemCardState extends State { child: Row( children: [ // Drag handle (if reorderable) + // Wrapped in GestureDetector to consume long-press and prevent context menu if (widget.canReorder) - ReorderableDragStartListener( - index: widget.index, - child: const Padding( - padding: EdgeInsets.only(right: 12), - child: AppIcon(Symbols.drag_indicator_rounded, fill: 1, color: Colors.grey), + GestureDetector( + onLongPress: () {}, + child: ReorderableDragStartListener( + index: widget.index, + child: const Padding( + padding: EdgeInsets.only(right: 12), + child: AppIcon(Symbols.drag_indicator_rounded, fill: 1, color: Colors.grey), + ), ), ),