hcbpassos / drag_select_grid_view

A grid that supports both dragging and tapping to select its items.
BSD 2-Clause "Simplified" License
133 stars 34 forks source link

Items won't get selected when auto-scrolling #2

Closed ghost closed 5 years ago

ghost commented 5 years ago

When auto-scrolling in select-mode, if you don't move the pointer, the items won't get selected.

Check this out:

untitled

This happens because the method responsible for selecting items on drag, DragSelectGridViewState._onLongPressMoveUpdate(), doesn't get called when scrolling.

I couldn't reproduce this issue with neither WidgetTester, due to the nature of the scrolling algorithm, nor FlutterDriver, due to the lack of long-pressing and dragging features.