Skip to content

2.0.0

Compare
Choose a tag to compare
@kingdido999 kingdido999 released this 08 Apr 04:54

Improve UI Testing

Add end-to-end testing using cypress. #55

Breaking changes

  1. No longer listen to images with data-action="zoom" on initialization #68.
  2. Remove defaultZoomable option.

All of the following will no longer make images zoomable:

  1. Simply include a script.

  2. Initialize a Zooming instance:

new Zooming()
  1. Initialize a Zooming instance with defaultZoomable:
new Zooming({
    defaultZoomable: '.img-zoomable'
})

Instead, please ALWAYS call .listen() on target images after creating a Zooming instance:

const zooming = new Zooming({
    // options...
})

zooming.listen('.img-zoomable')