TwoFingerPanDelegate Protocol Reference
- Last UpdatedJul 23, 2025
- 1 minute read
public protocol TwoFingerPanDelegate : AnyObject
Protocol for handling two finger pan gestures. Two finger pan gesture occurs when two fingers are on the screen and both of them are moving vertically.
-
Called when the two finger pan gesture occurs.
Declaration
Swift
func onTwoFingerPan(state: GestureState, origin: Point2D, translation: Point2D, velocity: Double)
Parameters
state
Determines in which state the gesture is.
origin
Position halfway between two touch points relative to the MapView in pixels.
translation
Translation offset since the last position in pixels.
velocity
Velocity of panning in pixels per millisecond.