1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Scroll with mouse

This commit is contained in:
lucasmerlin
2026-06-02 22:29:41 +02:00
parent e0b4b59c2c
commit a0c311f436

View File

@@ -166,10 +166,10 @@ pub enum DragScroll {
/// Only allow drag-to-scroll when a touch screen is detected /// Only allow drag-to-scroll when a touch screen is detected
/// (see [`crate::InputState::has_touch_screen`]). The recommended default. /// (see [`crate::InputState::has_touch_screen`]). The recommended default.
#[default]
OnTouch, OnTouch,
/// Always allow drag-to-scroll, even with a mouse. /// Always allow drag-to-scroll, even with a mouse.
#[default]
Always, Always,
} }
@@ -229,7 +229,7 @@ impl Default for ScrollSource {
fn default() -> Self { fn default() -> Self {
Self { Self {
scroll_bar: true, scroll_bar: true,
drag: DragScroll::OnTouch, drag: DragScroll::Always,
mouse_wheel: true, mouse_wheel: true,
} }
} }