rcbyr / keen-slider

The HTML touch slider carousel with the most native feeling you will get.
https://keen-slider.io/
MIT License
4.57k stars 210 forks source link

Mouse drag breaks when leaving slider container element #372

Open pawelkaczoruk opened 9 months ago

pawelkaczoruk commented 9 months ago

On touch screen when you start dragging on slide you can safely move your finger outside of slider and you will be able to still change slides. On the other hand when you do the same on desktop, as soon as cursor leaves slider container element then drag stops and dragEnded event is fired.

I would like it to work with mouse events the same as it works with touch events. Does anyone know if it's bug, expected behavior or if there is simple fix for that?

For reproduction just use any slider from the library examples: https://keen-slider.io/examples

davidmedero commented 6 months ago

Hi @pawelkaczoruk

Did you find a workaround for this yet?

pawelkaczoruk commented 6 months ago

Hey @davidmedero, I've switched to splidejs which doesn't have this issue