You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {RefObject<Element>|Element} param.target - element on which attach swipe event.
9
-
* @param {(e: PointerEvent) => void} [param.onSwipeStart] - callback that will be executed when swipe starts.
10
-
* @param {(e: PointerEvent, direction: SwipeDirection, delta: {x: number, y: number}) => void} [param.onSwipe] - callback that will be executed when swipe moves.
11
-
* @param {(e: PointerEvent, direction: SwipeDirection, delta: { x: number, y: number }) => void} [param.onSwipeEnd] - callback that will be executed when swipe ends.
10
+
* @param {(e: MouseEvent|TouchEvent) => void} [param.onSwipeStart] - callback that will be executed when swipe starts.
11
+
* @param {(e: MouseEvent|TouchEvent, direction: SwipeDirection, delta: {x: number, y: number}) => void} [param.onSwipe] - callback that will be executed when swipe moves.
12
+
* @param {(e: MouseEvent|TouchEvent, direction: SwipeDirection, delta: { x: number, y: number }) => void} [param.onSwipeEnd] - callback that will be executed when swipe ends.
12
13
* @param {Object} [param.options] - object to set option for listener.
13
14
* @param {boolean} [param.options.passive=true] - if true, handler callback never calls _preventDefault_ method.
14
15
* @param {threshold} [param.options.threshold=0] - a threshold value for swipe event.
15
16
* @returns {UseSwipeResult} - callback that stops listener.
0 commit comments