zng::scroll

Function mouse_pan

source
pub fn mouse_pan(child: impl UiNode, enabled: impl IntoVar<bool>) -> impl UiNode
Expand description

P Scroll by grabbing and dragging the content with the mouse primary button.

This is not enabled by default. Note that couch pan is always enabled, this property implements a similar behavior for the mouse pointer.