Interface ISnapCallbacksMap

Callbacks map for the Snap component

interface ISnapCallbacksMap {
    activeSlide: SnapSlide;
    destroy: undefined;
    idle: undefined;
    props: Partial<ISnapMutableProps>;
    rafPause?: undefined;
    rafPlay?: undefined;
    reflow: undefined;
    resize: undefined;
    swipe: ISwipeCoords;
    swipeEnd: ISwipeCoords;
    swipeInertiaCancel: undefined;
    swipeInertiaEnd: undefined;
    swipeInertiaFail: undefined;
    swipeInertiaStart: undefined;
    swipeStart: ISwipeCoords;
    timelineEnd: undefined;
    timelineStart: undefined;
    timelineUpdate: ITimelineProgressArg;
    update: undefined;
    wheel: WheelEvent;
    wheelEnd: undefined;
    wheelStart: undefined;
}

Hierarchy (View Summary)

Properties

activeSlide: SnapSlide

Fired after active slide change

destroy: undefined

Triggered when the module is destroyed.

idle: undefined

Fired on idle

props: Partial<ISnapMutableProps>

Triggered when the module's properties are updated. Receives the diff (changed keys and new values) as the first argument.

rafPause?: undefined

Fired on requestAnimationFrame pause

rafPlay?: undefined

Fired on requestAnimationFrame play

reflow: undefined

Fired on reflow: staticValues update

resize: undefined

Fired on resize

Fired on swipe move

swipeEnd: ISwipeCoords

Fired on swipe end

swipeInertiaCancel: undefined

Fired on inertia cancel

swipeInertiaEnd: undefined

Fired on inertia end

swipeInertiaFail: undefined

Fired on inertia fail

swipeInertiaStart: undefined

Fired on inertia start

swipeStart: ISwipeCoords

Fired on swipe start

timelineEnd: undefined

Fired on timeline animation end

timelineStart: undefined

Fired on timeline animation start

timelineUpdate: ITimelineProgressArg

Fired on timeline animation update

update: undefined

Fired during the rendering process

wheel: WheelEvent

Fired on wheel event

wheelEnd: undefined

Fired on wheel end

wheelStart: undefined

Fired on wheel start