1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix slideshow start/stop

This commit is contained in:
Dmitry Lyzo 2020-02-23 10:52:03 +03:00
parent 6d71fd9772
commit a87c4d97a0

View file

@ -342,7 +342,9 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
btnSlideshowPause.innerHTML = "pause";
}
swiperInstance.startAutoplay();
if (swiperInstance.autoplay) {
swiperInstance.autoplay.start();
}
}
function pause() {
@ -352,7 +354,9 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
btnSlideshowPause.innerHTML = "";
}
swiperInstance.stopAutoplay();
if (swiperInstance.autoplay) {
swiperInstance.autoplay.stop();
}
}
function playPause() {