Skip to content

Commit a11077a

Browse files
committed
fix: make sure only drag handles can reorder
1 parent cb09db3 commit a11077a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/track/TrackList.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ const trackList = templateRef("trackList");
5353
useDraggable(trackList, orderableTracks, {
5454
animation: 200,
5555
disabled: !props.reorder,
56+
ghostClass: "opacity-50",
57+
handle: ".drag-handle",
5658
onSort({ oldIndex, newIndex }) {
5759
if (oldIndex === undefined || newIndex === undefined || !props.tracks) {
5860
return;

0 commit comments

Comments
 (0)