egui/crates
MStarha f2ce6424f3
`ScrollArea` improvements for user configurability (#5443)
* Closes <https://github.com/emilk/egui/issues/5406>
* [x] I have followed the instructions in the PR template

The changes follow what is described in the issue with a couple changes:
- Scroll bars are not hidden when dragging is disabled, for that
`ScrollArea::scroll_bar_visibility()` has to be used, this is as not to
limit the user configurability by imposing a specific function. The user
might want to retain the scrollbars visibility to show the current
position.
- The input for mouse wheel scrolling is unchanged. When I inspected the
code initially I made a mistake in recognizing the source of scrolling.
Current implementation is in fact using
`InputState::smooth_scroll_delta` and not `PassState::scroll_delta`,
therefore it is possible to prevent scrolling by setting the
`InputState::smooth_scroll_delta` to zero before painting the
`ScrollArea`.

A simple demo is available at
https://github.com/MStarha/egui_scroll_area_test
2025-04-25 11:01:22 +02:00
..
ecolor Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
eframe Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui `ScrollArea` improvements for user configurability (#5443) 2025-04-25 11:01:22 +02:00
egui-wgpu Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui-winit Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_demo_app Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_demo_lib Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_extras `ScrollArea` improvements for user configurability (#5443) 2025-04-25 11:01:22 +02:00
egui_glow Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_kittest Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
epaint Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
epaint_default_fonts Release 0.31.1 - text_edit and kittest fixes 2025-03-05 08:37:34 +01:00