[UX] Lock scrolling during marquee selection #41

Closed
opened 2026-11-27 02:32:23 +00:00 by github-bot · 1 comment
Owner

@⁠adamjuankili on GitHub · 2026-11-22 14:54 UTC · original

Prevent the page/list from scrolling while the user is performing a marquee selection (clicking and dragging to select multiple elements):

Scrolling should be locked while marquee selection is active.

The lock should be released when the user finishes or cancels the selection.

Normal scrolling behavior should be restored immediately afterward.

**@⁠adamjuankili** on GitHub · 2026-11-22 14:54 UTC · [original](https://github.com/rpatty-dev/PercyStar/issues/41) Prevent the page/list from scrolling while the user is performing a marquee selection (clicking and dragging to select multiple elements): Scrolling should be locked while marquee selection is active. The lock should be released when the user finishes or cancels the selection. Normal scrolling behavior should be restored immediately afterward.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:32:23 +00:00
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-22 15:15 UTC · original

Fixed in main (677adc1)!

egui::ScrollArea::vertical() in the Explorer list now sets .enable_scrolling(!marquee_active) while a marquee drag selection (distance > 5.0 while primary mouse button is held) is active. Releasing the mouse button or pressing Escape immediately clears marquee_start and restores normal scrolling.

**@⁠rpatty-dev** on GitHub · 2026-11-22 15:15 UTC · [original](https://github.com/rpatty-dev/PercyStar/issues/41#issuecomment-7081158355) Fixed in `main` (`677adc1`)! `egui::ScrollArea::vertical()` in the Explorer list now sets `.enable_scrolling(!marquee_active)` while a marquee drag selection (`distance > 5.0` while primary mouse button is held) is active. Releasing the mouse button or pressing `Escape` immediately clears `marquee_start` and restores normal scrolling.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/rpatty-dev--PercyStar#41
No description provided.