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:
parent
6d71fd9772
commit
a87c4d97a0
1 changed files with 6 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue