Long Pressed: {{ longPressedHook }}
``` ## Component Usage ```vueLong Pressed: {{ longPressedComponent }}
Long Pressed: {{ longPressedDirective }}
``` ## Type Declarations ```ts export interface OnLongPressOptions { /** * Time in ms till `longpress` gets called * * @default 500 */ delay?: number | ((ev: PointerEvent) => number) modifiers?: OnLongPressModifiers /** * Allowance of moving distance in pixels, * The action will get canceled When moving too far from the pointerdown position. * @default 10 */ distanceThreshold?: number | false /** * Function called when the ref element is released. * @param duration how long the element was pressed in ms * @param distance distance from the pointerdown position * @param isLongPress whether the action was a long press or not */ onMouseUp?: (duration: number, distance: number, isLongPress: boolean) => void } export interface OnLongPressModifiers { stop?: boolean once?: boolean prevent?: boolean capture?: boolean self?: boolean } export declare function onLongPress( target: MaybeElementRef, handler: (evt: PointerEvent) => void, options?: OnLongPressOptions, ): () => void export type UseOnLongPressReturn = ReturnType