TwoFingerPanDelegate
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
stateDetermines in which state the gesture is.
originPosition halfway between two touch points relative to the MapView in pixels.
translationTranslation offset since the last position in pixels.
velocityVelocity of panning in pixels per millisecond.