DVUI

scrollDrag

Bubbled from inside a scrollarea to ensure scrolling while dragging if the mouse moves to the edge or outside the scrollarea.

During dragging, a widget should call this on each pointer motion event.

Parameters

#
scroll_drag:ScrollDragOptions
ScrollDragOptions

Source

Implementation

#
pub fn scrollDrag(scroll_drag: ScrollDragOptions) void {
    if (ScrollContainerWidget.current()) |scroll| {
        scroll.processScrollDrag(scroll_drag);
    }
}