import { BaseGesture , BaseGestureConfig } from './gesture' ; import { LongPressGestureConfig , LongPressGestureHandlerEventPayload , } from '../LongPressGestureHandler' ; export class LongPressGesture extends BaseGesture < LongPressGestureHandlerEventPayload > { public config : BaseGestureConfig & LongPressGestureConfig = { } ; constructor ( ) { super ( ) ; this . handlerName = 'LongPressGestureHandler' ; } minDuration ( duration ) { this . config . minDurationMs = duration ; return this ; } maxDistance ( distance ) { this . config . maxDist = distance ; return this ; } } export type LongPressGestureType = InstanceType < typeof LongPressGesture > ;