Interface ISwipeMutableProps

interface ISwipeMutableProps {
    __mutableProp?: null;
    axis?: null | "x" | "y";
    directionThreshold?: number;
    edgeSwipeThreshold?: number;
    enabled?: boolean;
    grabCursor?: boolean;
    inertia?: boolean;
    inertiaDuration?: (distance: number) => number;
    inertiaEasing?: TEasingType;
    inertiaRatio?: number;
    minTime?: number;
    preventEdgeSwipe?: boolean;
    preventTouchMove?: boolean;
    relative?: boolean;
    requireCtrlKey?: boolean;
    threshold?: number;
    willAbort?: (props: ISwipeCanMoveArg) => boolean;
}

Hierarchy (View Summary)

Properties

__mutableProp?: null
axis?: null | "x" | "y"

Primary swiping axis.

null
directionThreshold?: number

Minimum swipe distance (px) for directional callbacks.

50
edgeSwipeThreshold?: number

Edge swipe threshold (px) from the left/right edge.

20
enabled?: boolean

Enables or disables swipe events.

true
grabCursor?: boolean

Shows "grab" and "grabbing" cursors during interaction.

false
inertia?: boolean

Enables inertia animation.

false
inertiaDuration?: (distance: number) => number

Inertia duration.

(distance) => clamp(distance, 350, 1000)

inertiaEasing?: TEasingType

Easing function for inertia.

EaseOutCubic
inertiaRatio?: number

Inertia strength.

0.5
minTime?: number

Minimum duration (ms) to trigger swipe move.

0
preventEdgeSwipe?: boolean

Prevents edge swiping (iOS swipe-back gesture).

true
preventTouchMove?: boolean

Prevents touchmove event.

true
relative?: boolean

Calculates coordinates relative to the container.

false
requireCtrlKey?: boolean

Requires Ctrl key for swipe (mouse only).

false
threshold?: number

Minimum swipe distance (px) to trigger swipe start.

5
willAbort?: (props: ISwipeCanMoveArg) => boolean

Determines if swipe should be aborted.

() => false