SourceEnum DragScroll
from egui import DragScrollDragScroll.Always
DragScroll.Never
DragScroll.OnTouchWhen ScrollArea should let the user scroll by dragging the content.
Variants§
DragScroll.Always Enum value§
DragScroll.Never Enum value§
DragScroll.OnTouch Enum value§
Methods§
@staticmethod
def default() -> DragScroll§
Sourcedef enabled(self, /, ctx: Context) -> bool§
Whether drag-to-scroll is currently active.
Checks if we have a touch screen (via egui.InputState.has_touch_screen)
when self is egui.DragScroll.OnTouch.