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

Allow disabling animations on a ScrollArea #4309

Merged

Conversation

lucasmerlin
Copy link
Collaborator

@lucasmerlin lucasmerlin commented Apr 2, 2024

Adds ScrollArea::enabled that can disable animations when using the ui.scroll_to_* functions

@lucasmerlin lucasmerlin force-pushed the add-flag-to-disable-scroll-area-animations branch from e5f12af to 0041b59 Compare April 2, 2024 14:04
@emilk
Copy link
Owner

emilk commented Apr 2, 2024

Some CI failures, otherwise LGTM

@emilk emilk added the egui label Apr 2, 2024
@lucasmerlin lucasmerlin force-pushed the add-flag-to-disable-scroll-area-animations branch from 0041b59 to 8ecfb63 Compare April 2, 2024 14:33
@emilk emilk merged commit de9e0ad into emilk:master Apr 2, 2024
19 checks passed
emilk pushed a commit that referenced this pull request Apr 2, 2024
<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md)
before opening a Pull Request!

* Keep your PR:s small and focused.
* The PR title is what ends up in the changelog, so make it descriptive!
* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to add commits to your PR.
* Remember to run `cargo fmt` and `cargo cranky`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.

Please be patient! I will review your PR, but my time is limited!
-->

Adds a flag to ScrollArea that disables animations for the scroll_to_*
functions
@emilk emilk changed the title Allow disabling animations on a ScrollArea Allow disabling animations on a ScrollArea Apr 2, 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.

2 participants