Releases: dimsemenov/PhotoSwipe
Releases · dimsemenov/PhotoSwipe
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 #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
v5.3.9
What's Changed
New Contributors
- @JPustkuchen made their first contribution in #2053
- @hzpeng57 made their first contribution in #2055
- @zt123123 made their first contribution in #2058
Full Changelog: 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 #2031
Full Changelog: v5.3.7...v5.3.8
v5.3.7
- Typescript fix: add missing type parameter constraints by @Rugvip in #2028
- Docs update: webp example, update custom-content.md by @thomasnavarro in #2024
New Contributors
- @Rugvip made their first contribution in #2028
- @thomasnavarro made their first contribution in #2024
Full Changelog: 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 #2008
Full Changelog: v5.3.5...v5.3.6
v5.3.5
- Fix rtl issues by @Mister-Hope in #2007
- Fix types and strictNullChecks by @Tw1N88 in #2009
v5.3.4
v5.3.3
- Fix unhandled rejection "EncodingError: The source image cannot be decoded" (by Tw1N88)
- Fix typo in attribute name (by Tw1N88)
- Fix Cannot read properties of undefined (reading 'applyCurrentZoomPan') (by Tw1N88)
- Fix (types) change types of children & gallery options according to docs (by Schleuse)
5.3.2
5.3.1
5.3.0
- Adjust zoomed-in class behaviour to reflect toggleZoom method, #1946
- Remove placeholder after image is loaded
- Allow PhotoSwipeBase for lazyLoadData method
- Append image only after it's fully loaded in Safari
- Set sizes before srcset
- Size of content is now calculated before it's appended to DOM
- Allow PhotoSwipeBase type for loader
- Replace innerHTML to preserve Trusted Types
- Allow filtering of size when slide deactivates