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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user