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