This may not work in this case, but I wanted to know when a carousel slide was swiped with react-slick but not changed by a button. There's few events that are given so I went with beforeChange
(onSwipe
is in the typing but not working).
I was able to effectively do the same thing as the drag events with onTouchStart
, onTouchEnd
, onMouseDown
, and onMouseUp
and put isDragging
in state.