Remove commented-out code for previous slide handling and play/pause button state management
This commit is contained in:
@@ -2291,25 +2291,11 @@ const SlideshowManager = {
|
|||||||
|
|
||||||
if (previousVisibleSlide) {
|
if (previousVisibleSlide) {
|
||||||
previousVisibleSlide.classList.remove("active");
|
previousVisibleSlide.classList.remove("active");
|
||||||
// previousVisibleSlide.setAttribute("inert", "");
|
|
||||||
// previousVisibleSlide.setAttribute("tabindex", "-1");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
currentSlide.classList.add("active");
|
currentSlide.classList.add("active");
|
||||||
// // Update Play/Pause Button State if it was paused
|
|
||||||
// if (STATE.slideshow.isPaused) {
|
|
||||||
// STATE.slideshow.isPaused = false;
|
|
||||||
// const pauseButton = document.querySelector('.pause-button');
|
|
||||||
// if (pauseButton) {
|
|
||||||
// pauseButton.innerHTML = '<i class="material-icons">pause</i>';
|
|
||||||
// const pauseLabel = LocalizationUtils.getLocalizedString('ButtonPause', 'Pause');
|
|
||||||
// pauseButton.setAttribute("aria-label", pauseLabel);
|
|
||||||
// pauseButton.setAttribute("title", pauseLabel);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Manage Video Playback: Stop others, Play current
|
// Manage Video Playback: Stop others, Play current
|
||||||
|
|
||||||
// 1. Stop all other YouTube players and local video elements
|
// 1. Stop all other YouTube players and local video elements
|
||||||
if (STATE.slideshow.videoPlayers) {
|
if (STATE.slideshow.videoPlayers) {
|
||||||
Object.keys(STATE.slideshow.videoPlayers).forEach(id => {
|
Object.keys(STATE.slideshow.videoPlayers).forEach(id => {
|
||||||
|
|||||||
Reference in New Issue
Block a user