diff --git a/src/pages/view/useSlideshow.js b/src/pages/view/useSlideshow.js index 0a3d5d95f..0d42fc27e 100644 --- a/src/pages/view/useSlideshow.js +++ b/src/pages/view/useSlideshow.js @@ -63,9 +63,9 @@ const useSlideshow = (displayItems, slideshowElementRef) => { const handleKeyDown = (event) => { if (document.fullscreenElement) { if (event.key === 'ArrowRight') { - nextItem() + document.dir === 'ltr' ? nextItem() : prevItem() } else if (event.key === 'ArrowLeft') { - prevItem() + document.dir === 'ltr' ? prevItem() : nextItem() } } }