Fix slideshow start/stop

This commit is contained in:
Dmitry Lyzo
2020-02-23 10:52:03 +03:00
parent 6d71fd9772
commit a87c4d97a0
+6 -2
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() {