Releases: fengyuanchen/viewerjs
Releases · fengyuanchen/viewerjs
v1.3.2
- Fix
Document not active
error when calling the exit
method.
- Improve wheel event listening for better performance (#102).
v1.3.1
- Emulate click (single tap) and double click (double tap) in touch devices to support backdrop and image zooming (#210).
- Ignore pointer events when not the primary button was pressed (#221).
v1.3.0
- Add a new option:
className
(#209).
- Fix wrong click action when the target image is ignored by the
filter
option (#211)
v1.2.1
- Improve viewer instance storage to avoid side effect.
- Fix parameter error of
Object.assign
in iOS devices.
v1.2.0
- Add 2 new options:
toggleOnDblclick
(#173) and initialViewIndex
(#183).
- Enhance the
title
option to support to customize title content (#54, #185).
v1.1.0
- Add 2 new events:
zoom
and zoomed
(#144).
- Make the touch zooming more smoother (#162).
v1.0.1
- Add namespace to data attribute names (from
data-*
to data-viewer-*
) to avoid side effect.
- Make sure the image data is a non-null object to avoid unexpected errors.
- Fix broken zoom feature in iOS browsers (#167).
v1.0.0
- Add in browser checking to support to import in Node.js.
- Cancel update when there are no images when call the
update
method.
v1.0.0-rc.1
- Fix the wrong image switching behavior in iOS browsers.
- Fix a
TypeError
in strict mode (#149).
- Fix type definitions issue of the
show
and hide
methods.
v1.0.0-rc
- Add a new option:
loading
.
- Add type definitions file for TypeScript.
- Enhance the
show
, hide
and play
methods.
- Change the default value of
loop
option from false
to true
.