zng_wgt_scroll

Static ZOOM_TOUCH_ORIGIN_VAR

source
pub static ZOOM_TOUCH_ORIGIN_VAR: ContextVar<Point>
Expand description

Center point of zoom scaling done using the touch pinch gesture.

Relative values are resolved in the viewport space. The scroll offsets so that the point in the viewport and content stays as close as possible after the scale change.

The default value (Length::Default) is center point between the two touch contact points.