Releases: fengyuanchen/viewerjs
Releases · fengyuanchen/viewerjs
v1.6.0
- Add a new options:
inheritedAttributes
.
- Ignore images without the
src
attribute (#326).
- Improve the
hide
method for unexpected calling (#367).
- Reset the padding right of the
body
element when resizing (#379).
- Remove unnecessary
padding-right: 0px
from the body
element when close the viewer modal (#394).
v1.5.0
- Force reflow element in a new way to avoid side effect (#343).
- Add a new option:
slideOnTouch
(#340).
- Detect if the queried image is existing when update image list (#333).
v1.4.0
- Add two new options:
zoomOnTouch
and zoomOnWheel
(#329).
v1.3.7
- Do nothing if the
index
value is invalid when call the view
method (#312).
- Ignore invalid
element
parameter on the class utility functions (#317).
- Improve event type determining for iOS 13+ (#321).
v1.3.6
- Avoid using the
innerHTML
property for security (#269).
- Avoid escaping URLs (#298, #301).
v1.3.5
- Improve the escaping function to avoid to escape HTML entities repeatedly.
v1.3.4
- Escape all strings that use in HTML for better security (#269).
- Fix the missing fade out transition when hiding the viewer (#275).
- Decode image name when it comes from URL (#282).
v1.3.3
- Fix unexpected modal exiting behavior when the mouse is pressed (#255).
- Abort image downloading when cancel viewing for better performance.
v1.3.2
- Fix
Document not active
error when calling the exit
method.
- Improve wheel event listening for better performance (#102).