UNPKG

@tachui/modifiers

Version:

Essential styling modifiers for tachUI framework

26 lines 1.04 kB
/** * OnLongPressGesture Modifier * * Implements long press gesture detection with customizable timing and distance constraints. * Supports both pointer and touch events for cross-platform compatibility. */ import { BaseModifier } from '../base'; import type { DOMNode } from '@tachui/core/runtime/types'; import type { ModifierContext } from '../types'; export interface OnLongPressGestureOptions { minimumDuration?: number; maximumDistance?: number; perform: () => void; onPressingChanged?: (isPressing: boolean) => void; } export declare class OnLongPressGestureModifier extends BaseModifier<OnLongPressGestureOptions> { readonly type = "onLongPressGesture"; readonly priority = 85; apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined; private setupLongPressGesture; } /** * Factory function for onLongPressGesture modifier */ export declare function onLongPressGesture(options: OnLongPressGestureOptions): OnLongPressGestureModifier; //# sourceMappingURL=on-long-press-gesture.d.ts.map