egui/examples/custom_plot_manipulation
Andreas Reich 10f092d9d4
Add `clamp_to_range` option to DragValue, rename `clamp_range` to `range` (deprecating the former) (#4728)
Adds the ability to have `DragValue` not clamp values its presented with
and instead apply clamping only once there's any user input.

In action:


https://github.com/emilk/egui/assets/1220815/af42fd67-86d0-4364-8ae6-48a2ec15646a




Alternative name could be `only_clamp_on_change`, not entirely certain
which one is better 🤔
2024-06-28 16:06:59 +02:00
..
src Add `clamp_to_range` option to DragValue, rename `clamp_range` to `range` (deprecating the former) (#4728) 2024-06-28 16:06:59 +02:00
Cargo.toml Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
README.md Plot custom zoom (#2714) 2024-01-06 22:34:42 +01:00
screenshot.png Update example screenshots 2024-02-05 13:01:10 +01:00

README.md

Example how to use raw input events to implement alternative controls to pan and zoom the plot

cargo run -p custom_plot_manipulation