Skip to content

fix(grid): support mouse drag range selection across cells in ResultGridView (#904) - #951

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/904-grid-drag-range-selection
Sep 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/904-grid-drag-range-selection

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #904

Summary of Changes:

  • Added mouse pointer drag gesture tracking to VirtualResultGrid in result_grid_view.dart.
  • Calculates rectangular bounding box selections (ResultGridSelection.fromPoints) between drag anchor and current hovered cell.
  • Added viewport edge auto-scrolling with velocity scaling when dragging towards or beyond visible boundaries.
  • Preserved single click, double click cell editing, Shift+click range expansion, and right-click context menu without interference.
  • Added comprehensive widget test suite covering rectangular drag selection, reverse drag, single clicks, and viewport auto-scrolling in result_grid_drag_selection_test.dart.

@github-actions github-actions Bot added enhancement New feature or request ui User interface components and widgets data-grid Interactive data grid, cell editor, filtering, groupings labels Sep 25, 2026
@github-actions github-actions Bot added this to the 0.4.18 milestone Sep 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit a7d042e into dev Sep 25, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/904-grid-drag-range-selection branch September 28, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-grid Interactive data grid, cell editor, filtering, groupings enhancement New feature or request ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant