JavaScript image gallery for mobile and desktop, modular, framework independent
dataSource
param is now optional for PhotoSwipeLightbox.loadAndOpen
method, the first gallery is chosen if it's not provided.trapFocus
option (by default PhotoSwipe traps tab focus within the dialog, this option allows disabling the functionality) https://photoswipe.com/options/#trapfocus
preventPointerEvent
filter (by default PhotoSwipe calls e.preventDefault()
during pointer-move events, this filter allows you to disable it over certain elements) https://photoswipe.com/filters/#preventpointerevent
Fix: lower version browsers do not support nullish-coalescing syntax https://github.com/dimsemenov/PhotoSwipe/commit/28baa3d0ee356ddf516d1b6c231bb9608ab9b171
Full Changelog: https://github.com/dimsemenov/PhotoSwipe/compare/v5.3.8...v5.3.9
navigator.onLine
check so the gallery can be used while offline<picture>
example by @solemone in https://github.com/dimsemenov/PhotoSwipe/pull/2031
Full Changelog: https://github.com/dimsemenov/PhotoSwipe/compare/v5.3.7...v5.3.8
Full Changelog: https://github.com/dimsemenov/PhotoSwipe/compare/v5.3.6...v5.3.7
src
) rather than srcset
. This problem was caused by the prev release (5.3.5).classList.toggle
where possible by @hirasso in https://github.com/dimsemenov/PhotoSwipe/pull/2008
Full Changelog: https://github.com/dimsemenov/PhotoSwipe/compare/v5.3.5...v5.3.6
Accessibility improvements (via @in0ni).