1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -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
/// (see [`crate::InputState::has_touch_screen`]). The recommended default.
#[default]
OnTouch,
/// Always allow drag-to-scroll, even with a mouse.
#[default]
Always,
}
@@ -229,7 +229,7 @@ impl Default for ScrollSource {
fn default() -> Self {
Self {
scroll_bar: true,
drag: DragScroll::OnTouch,
drag: DragScroll::Always,
mouse_wheel: true,
}
}