Workaround for an aria issue...

...somewhere (In something we're doing? In PS? In Chrome? In ARIA?)
This commit is contained in:
Manav Rathi 2025-02-17 16:32:13 +05:30
parent f6d949db38
commit bb2bbb5655
No known key found for this signature in database

View File

@ -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,