fix: swipe in thumbnails not navigating

This commit is contained in:
Julien Froidefond
2025-02-16 21:03:49 +01:00
parent 62114b8fcb
commit aa04055a1a

View File

@@ -40,6 +40,9 @@ export const NavigationBar = ({
<div <div
id="thumbnails-container" id="thumbnails-container"
className="h-full overflow-x-auto flex items-center gap-2 px-4 scroll-smooth snap-x snap-mandatory" className="h-full overflow-x-auto flex items-center gap-2 px-4 scroll-smooth snap-x snap-mandatory"
onTouchStart={(e) => e.stopPropagation()}
onTouchMove={(e) => e.stopPropagation()}
onTouchEnd={(e) => e.stopPropagation()}
> >
<div className="w-[calc(50vw-18rem)] flex-shrink-0" /> <div className="w-[calc(50vw-18rem)] flex-shrink-0" />
{pages.map((_, index) => { {pages.map((_, index) => {