fix(playlist): drag handle gesture conflict

close #167
This commit is contained in:
edde746
2026-01-04 08:19:36 +01:00
parent da6ba9bd67
commit 85b056f3d0
+9 -5
View File
@@ -54,12 +54,16 @@ class _PlaylistItemCardState extends State<PlaylistItemCard> {
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),
),
),
),