Skip to main content

touch_pan

Function touch_pan 

Source
pub fn touch_pan(ctx: &Context, rect: Rect) -> Vec2
Expand description

How far two fingers or more moved this frame on a touch screen, in points, when they started over rect: the content follows them. A pinch’s zoom comes with the wheel’s inputs (egui_pop_core::pointer::wheel_inputs).