Skip to content

Commit

Permalink
chore: fix events docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Jul 11, 2023
1 parent 21b24df commit 22e89d1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/types/swiper-events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,42 +109,42 @@ export interface SwiperEvents {
transitionEnd: (swiper: Swiper) => void;

/**
* Event will be fired when user touch Swiper. Receives `touchstart` event as an arguments.
* Event will be fired when user touch Swiper. Receives `pointerdown` event as an arguments.
*/
touchStart: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

/**
* Event will be fired when user touch and move finger over Swiper. Receives `touchmove` event as an arguments.
* Event will be fired when user touch and move finger over Swiper. Receives `pointermove` event as an arguments.
*/
touchMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

/**
* Event will be fired when user touch and move finger over Swiper in direction opposite to direction parameter. Receives `touchmove` event as an arguments.
* Event will be fired when user touch and move finger over Swiper in direction opposite to direction parameter. Receives `pointermove` event as an arguments.
*/
touchMoveOpposite: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

/**
* Event will be fired when user touch and move finger over Swiper and move it. Receives `touchmove` event as an arguments.
* Event will be fired when user touch and move finger over Swiper and move it. Receives `pointermove` event as an arguments.
*/
sliderMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

/**
* Event will be fired when user release Swiper. Receives `touchend` event as an arguments.
* Event will be fired when user release Swiper. Receives `pointerup` event as an arguments.
*/
touchEnd: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

/**
* Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
* Event will be fired when user click/tap on Swiper. Receives `pointerup` event as an arguments.
*/
click: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

/**
* Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
* Event will be fired when user click/tap on Swiper. Receives `pointerup` event as an arguments.
*/
tap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

/**
* Event will be fired when user double tap on Swiper's container. Receives `touchend` event as an arguments
* Event will be fired when user double tap on Swiper's container. Receives `pointerup` event as an arguments
*/
doubleTap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;

Expand Down

0 comments on commit 22e89d1

Please sign in to comment.