Open Teisi opened 5 years ago
Fix: added removeEvents(container, {'mouseleave': onPanEnd}); to function pause () and added addEvents(container, {'mouseleave': onPanEnd}); to function play()
function pause () {
if (animating) {
removeEvents(container, {'mouseleave': onPanEnd});
stopAutoplay();
autoplayUserPaused = true;
}
}
function play () {
if (autoplay && !animating) {
startAutoplay();
addEvents(container, {'mouseleave': onPanEnd});
autoplayUserPaused = false;
}
}
Issue description:
slider.pause() don't work. If i set slider.pause() then the slider should be paused/stopped, but it is only paused/stopped if i have my mouse over the slider itself.
Demo link/slider setting:
example:
and this config:
Tiny-slider version: 2.9.1 Browser name && version: all browser OS name && version: windows 10