v5.4.4
- Bugfix: an empty slide may appear if there are 3 slides in total and the user swiped through 4 slides rapidly https://github.com/dimsemenov/PhotoSwipe/issues/2103
- Remove restriction of typesVersion to 4.7 https://github.com/dimsemenov/PhotoSwipe/pull/2078
Full Changelog: https://github.com/dimsemenov/PhotoSwipe/compare/v5.4.2...v5.4.4
v5.4.2
dataSource
param is now optional forPhotoSwipeLightbox.loadAndOpen
method, the first gallery is chosen if it's not provided.- @BeeMargarida made their first contribution in https://github.com/dimsemenov/PhotoSwipe/pull/2069
v5.4.1
- Added
trapFocus
option (by default PhotoSwipe traps tab focus within the dialog, this option allows disabling the functionality) https://photoswipe.com/options/#trapfocus - Added
preventPointerEvent
filter (by default PhotoSwipe callse.preventDefault()
during pointer-move events, this filter allows you to disable it over certain elements) https://photoswipe.com/filters/#preventpointerevent
v5.4.0
Fix: lower version browsers do not support nullish-coalescing syntax https://github.com/dimsemenov/PhotoSwipe/commit/28baa3d0ee356ddf516d1b6c231bb9608ab9b171
v5.3.9
What's Changed
- fix: lower version browsers do not support optional chain syntax by @zt123123 in https://github.com/dimsemenov/PhotoSwipe/pull/2058
New Contributors
- @JPustkuchen made their first contribution in https://github.com/dimsemenov/PhotoSwipe/pull/2053
- @hzpeng57 made their first contribution in https://github.com/dimsemenov/PhotoSwipe/pull/2055
- @zt123123 made their first contribution in https://github.com/dimsemenov/PhotoSwipe/pull/2058
Full Changelog: https://github.com/dimsemenov/PhotoSwipe/compare/v5.3.8...v5.3.9
v5.3.8
- Removed
navigator.onLine
check so the gallery can be used while offline - Added custom contentRemove handler to
<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
v5.3.7
- Typescript fix: add missing type parameter constraints by @Rugvip in https://github.com/dimsemenov/PhotoSwipe/pull/2028
- Docs update: webp example, update custom-content.md by @thomasnavarro in https://github.com/dimsemenov/PhotoSwipe/pull/2024
New Contributors
- @Rugvip made their first contribution in https://github.com/dimsemenov/PhotoSwipe/pull/2028
- @thomasnavarro made their first contribution in https://github.com/dimsemenov/PhotoSwipe/pull/2024
Full Changelog: https://github.com/dimsemenov/PhotoSwipe/compare/v5.3.6...v5.3.7
v5.3.6
- Fixed an issue that caused lazy-loading of the full image (from
src
) rather thansrcset
. This problem was caused by the prev release (5.3.5). - Use
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
v5.3.5
- Fix rtl issues by @Mister-Hope in https://github.com/dimsemenov/PhotoSwipe/pull/2007
- Fix types and strictNullChecks by @Tw1N88 in https://github.com/dimsemenov/PhotoSwipe/pull/2009
v5.3.4
Accessibility improvements (via @in0ni).
- added ARIA attributes to follow 'carousel' pattern,
- set/unset aria-hidden according to active slide,
- set id=pswp__items, and ensure buttons have aria-controls pointing to it