Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Workaround for an aria issue...

Manav Rathibb2bbb56556f
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index dba046614b..31a198ec38 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -195,6 +195,10 @@ export class FileViewerPhotoSwipe {
// Taking a step back though, the PhotoSwipe viewport is fixed, so
// we can just directly map wheel / trackpad scrolls to zooming.
wheelToZoom: true,
+ // Chrome yells about incorrectly mixing focus and aria-hidden if we
+ // leave this at the default (true) and then swipe between slides
+ // fast, or show MUI drawers etc.
+ trapFocus: false,
// Set the index within files that we should open to. Subsequent
// updates to the index will be tracked by PhotoSwipe internally.
index: initialIndex,