S or /

SourceEnum DragScroll

from egui import DragScroll
DragScroll.Always
DragScroll.Never
DragScroll.OnTouch

When 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.

def name(self, /) -> str§