mirror of
https://github.com/obsqrbtz/egui_knob.git
synced 2026-04-08 20:19:17 +03:00
added support for using scroll wheel to modify knob value
This commit is contained in:
@@ -88,7 +88,8 @@ impl eframe::App for KnobDemo {
|
||||
.with_show_filled_segments(self.show_filled)
|
||||
.with_colors(self.knob_color, self.line_color, self.text_color)
|
||||
.with_step(self.use_step.then_some(0.02))
|
||||
.with_double_click_reset(0.5);
|
||||
.with_double_click_reset(0.5)
|
||||
.with_middle_scroll();
|
||||
|
||||
if *label == "Wiper, Sweep" {
|
||||
knob = knob.with_sweep_range(0.25, 0.75).with_size(50.0);
|
||||
|
||||
Reference in New Issue
Block a user