egui/crates
lucasmerlin 4b59c6d414
Fix `Ui::scroll_with_delta` only scrolling if the `ScrollArea` is focused (#4303)
<!--
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!
-->

This introduces the boolean field force_current_scroll_area to
InputState which will be set when scroll_with_delta is called, causing
the ScrollArea to skip the check whether it is focused and always
consume the smooth scroll delta.

* Closes #2783 
* Related to #4295

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-05-28 09:21:35 +02:00
..
ecolor Move dependencies to workspace (#4495) 2024-05-14 11:02:49 +02:00
eframe Fix: Don't `.forget()` RAF closure (#4551) 2024-05-27 21:55:23 +02:00
egui Fix `Ui::scroll_with_delta` only scrolling if the `ScrollArea` is focused (#4303) 2024-05-28 09:21:35 +02:00
egui-wgpu Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui-winit Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui_demo_app Add `Options::reduce_texture_memory` to free up RAM (#4431) 2024-05-28 09:13:43 +02:00
egui_demo_lib Fix `Ui::scroll_with_delta` only scrolling if the `ScrollArea` is focused (#4303) 2024-05-28 09:21:35 +02:00
egui_extras Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui_glow Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui_plot Plot now respects the `interact_radius` set in the UI's style (#4520) 2024-05-27 19:23:15 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Move dependencies to workspace (#4495) 2024-05-14 11:02:49 +02:00
epaint Don't panic when replacement glyph is not found (#4542) 2024-05-27 11:53:06 +02:00