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
On mobile devices, I am struggling with the fact that when users touch the screen and move vertically to scroll the page, if the move is slightly in diagonal to the Carousel, it changes to the next or previous item. I have tried adding onTouchStart, onTouchMove and onTouchEnd events to customize the behavior and only allow the event to propagate if the move was mostly horizontal, but have had no success with this approach.
Even using a ref to add the event listeners mentioned above, with passive: false, the console throws the error "Unable to preventDefault inside passive event listener invocation" or just does not work as I expected, completely blocking the Carousel from changing the page in all cases.
I need a way to prevent the users from changing the carousel page unless they really want to do that.
The text was updated successfully, but these errors were encountered:
On mobile devices, I am struggling with the fact that when users touch the screen and move vertically to scroll the page, if the move is slightly in diagonal to the Carousel, it changes to the next or previous item. I have tried adding onTouchStart, onTouchMove and onTouchEnd events to customize the behavior and only allow the event to propagate if the move was mostly horizontal, but have had no success with this approach.
Even using a ref to add the event listeners mentioned above, with passive: false, the console throws the error "Unable to preventDefault inside passive event listener invocation" or just does not work as I expected, completely blocking the Carousel from changing the page in all cases.
I need a way to prevent the users from changing the carousel page unless they really want to do that.
The text was updated successfully, but these errors were encountered: