Skip to content

Fix scrolling in modals#812

Merged
lhecker merged 1 commit intomainfrom
dev/lhecker/fix-scroll
Apr 23, 2026
Merged

Fix scrolling in modals#812
lhecker merged 1 commit intomainfrom
dev/lhecker/fix-scroll

Conversation

@lhecker
Copy link
Copy Markdown
Member

@lhecker lhecker commented Apr 23, 2026

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 lhecker added I-bug It shouldn't be doing this. P-high High priority, fix ASAP. Example: The application crashes. labels Apr 23, 2026
@lhecker lhecker requested a review from DHowett April 23, 2026 12:39
@lhecker lhecker merged commit c8a9787 into main Apr 23, 2026
8 checks passed
@lhecker lhecker deleted the dev/lhecker/fix-scroll branch April 23, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I-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