Skip to content

Fix scrolling in modals - #812

Merged
Leonard Hecker (lhecker) merged 1 commit into
mainfrom
dev/lhecker/fix-scroll
Apr 23, 2026
Merged

Leonard Hecker (lhecker) merged 1 commit into
mainfrom
dev/lhecker/fix-scroll

Conversation

@lhecker

Copy link
Copy Markdown
Member

Without a node-path check, the order of UI element creation
mattered. Since models are created after the text area this
meant that the text area would steal all scroll input.

This regressed in #603

Comment thread crates/edit/src/tui.rs

let mut hovered_node = None; // Needed for `mouse_down`
let mut focused_node = None; // Needed for `mouse_down` and `is_click`
if mouse_down || mouse_up {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lhecker Leonard Hecker (lhecker) added C-bug It shouldn't be doing this. P-high High priority, fix ASAP. Example: The application crashes. labels Apr 23, 2026
@lhecker
Leonard Hecker (lhecker) merged commit c8a9787 into main Apr 23, 2026
8 checks passed
@lhecker
Leonard Hecker (lhecker) deleted the dev/lhecker/fix-scroll branch April 23, 2026 17:51
Leonard Hecker (lhecker) added a commit that referenced this pull request Apr 27, 2026
#812 didn't properly fix dragging and mouse
inputs with modifiers. It should be solid now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug It shouldn't be doing this. P-high High priority, fix ASAP. Example: The application crashes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants