This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Description

Describe the bug
Carousel doesn't stop dragging when mouseup event is triggered outside of carousel container.
To Reproduce
Steps to reproduce the behavior:
- Go to https://brainhubeu.github.io/react-carousel/docs/examples/simpleUsage
- Start dragging the carousel
- While still pressing the button move the cursor outside of carousel container
- Release the button
- Notice carousel is still dragging while you're not pressing the button
Expected behavior
Carousel should stop dragging when releasing the button (no matter if it's in the container or not).
Screenshots

Desktop (please complete the following information):
- OS: [macOS 10.14.6]
- Browser [Chrome]
- Version [79.0.3945.88]
IssueHunt Summary
sinchang has been rewarded.
Backers (Total: $5.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor