Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Fix pauseontouch #589

Open
wants to merge 2 commits into
base: SlidesJS-3
Choose a base branch
from

Conversation

figureone
Copy link

When config options pauseOnHover and auto are set to true, slide transitions stop when the mouse is over the slides container (this is done via mouseenter and mouseleave events).

However, transitions are not paused on a mobile device when the slides are being dragged via touch.

This patch pauses transitions by triggering mouseenter and mouseleave in the touchstart and touchend events, respectively.

Note that I did not compile the coffeescript nor generate a minified version in this pull request.

Thanks for your awesome slider!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant