Skip to content

textmode.js / input / touch / TouchSwipeEventData

Interface: TouchSwipeEventData

Swipe event data reported when the finger travels a minimum distance within a time window

Properties

PropertyTypeDescription
directionobjectNormalised swipe direction vector
direction.xnumber-
direction.ynumber-
distancenumberTotal distance travelled in CSS pixels
originalEventTouchEventOriginal browser event
touchTouchPositionTouch point at the end of the swipe
velocityobjectVelocity in CSS pixels per millisecond
velocity.xnumberVelocity in X direction
velocity.ynumberVelocity in Y direction