Skip to content

Commit

Permalink
disable multi drag support
Browse files Browse the repository at this point in the history
  • Loading branch information
casvanluijtelaar committed Nov 20, 2023
1 parent 95970cc commit 617571a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/reorderable_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ class SliverReorderableGridState extends State<SliverReorderableGrid>
Drag? _dragStart(Offset position) {
assert(_dragInfo == null);

// if any items are already being dragged, ignore this dragstart
if(_items.values.any((e) => e.dragging)) return null;


final _ReorderableItemState item = _items[_dragIndex!]!;
item.dragging = true;
item.rebuild();
Expand Down

0 comments on commit 617571a

Please sign in to comment.