Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant