Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollArea: Add option to always scroll the only enabled direction #3710

Merged
merged 5 commits into from
Jan 7, 2024

Conversation

untbu
Copy link
Contributor

@untbu untbu commented Dec 17, 2023

Add option to use the scroll input from both directions to scroll the enabled direction if scrolling is enabled for only one direction. This can be used to allow horizontal scrolling without pressing shift if vertical scrolling is disabled.

Closes #3624.

@emilk
Copy link
Owner

emilk commented Dec 30, 2023

Do you really want to hav this setting for eah ScrollArea? Seems like this would make more sense as a global option in Style

crates/egui/src/containers/scroll_area.rs Outdated Show resolved Hide resolved
crates/egui/src/style.rs Show resolved Hide resolved
@emilk emilk added the egui label Jan 7, 2024
@emilk emilk merged commit 937c09f into emilk:master Jan 7, 2024
19 of 20 checks passed
@emilk emilk changed the title [ScrollArea]: Add option to always scroll the only enabled direction ScrollArea: Add option to always scroll the only enabled direction Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow holding shift on ScrollAreas with horizontal scrolling disabled
2 participants