Releases: fengyuanchen/viewerjs
Releases · fengyuanchen/viewerjs
v1.10.2
- Increase title height for avoiding truncation (#509).
- Fix a
TypeError
when there are not any images (#504).
- Remove loading class on image load error (#502).
v1.10.1
- Check if the active item exists to avoid TypeError (#491).
- Compute nav item gutter dynamically (#487).
v1.10.0
- Enhance
fullscreen
option and play
method to support FullscreenOptions
(#482, #483).
- Refactor the
toggle
method for toggling image between current/natural ratio (#477).
- Improve the
toggle
method for zooming by double-click (#422).
v1.9.2
- Avoid conflicts with other modals (#474).
- Allow
ToolbarOption
to be undefined (#473).
v1.9.1
- Fix the missing declaration for the
focus
option (#470).
v1.9.0
- Add 6 new events:
move
, moved
, rotate
, rotated
, scale
, and scaled
.
- Add an example for limiting the moving range with the help of the
move
event.
v1.8.0
- Add a new option:
focus
.
- Add ARIA attributes for better accessibility.
- Add the
Tab
and Enter
keys to the keyboard support.
- Check if the
pointer
object is defined or not for better compatibility (#421).
v1.7.1
- Fix an issue in the
types/index.d.ts
file (#414).
v1.7.0
- Add 2 new events:
play
and stop
(#411).
- Let the
viewed
, zoomed
and hidden
events can not be canceled.
- Improve the TypeScript declarations in the
types/index.d.ts
file.
v1.6.2
- Fix wrong usage about
this
in ES6+ (#395).
- Improve the wheel zoom behavior (#396).
- Improve the
hide
method for some edge cases (#407).