feat(web): improve slideshow quality of life (#18778)
* Add a new setting to toggle autoplay when showing the slideshow. * Fix an issue where the slideshow would restart automatically when navigating after it was paused. * Add a keyboard shortcut 's' to start the slideshow from the asset viewer. * Add a keyboard shortcut ' ' to toggle the slideshow play/paused. * Change the timeout for hiding the slideshow controls from 10 to 2.5 seconds. * Add English translation for the 'autoplay_slideshow' setting. Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
@@ -39,6 +39,7 @@ function createSlideshowStore() {
|
||||
const showProgressBar = persisted<boolean>('slideshow-show-progressbar', true);
|
||||
const slideshowDelay = persisted<number>('slideshow-delay', 5, {});
|
||||
const slideshowTransition = persisted<boolean>('slideshow-transition', true);
|
||||
const slideshowAutoplay = persisted<boolean>('slideshow-autoplay', true, {});
|
||||
|
||||
return {
|
||||
restartProgress: {
|
||||
@@ -69,6 +70,7 @@ function createSlideshowStore() {
|
||||
slideshowDelay,
|
||||
showProgressBar,
|
||||
slideshowTransition,
|
||||
slideshowAutoplay,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user