Skip to content

Conversation

@ricochet2200
Copy link

I have a requirement to zoom only if the user clicks the image. Clicking again or moving off the image should turn off the zoom. I've added this as an optional feature to this project. By adding click: true (defaults to false) to the options, the behaviour changes.

This does not change behaviour for any existing projects. To prove that and to test, I've left index.html untouched and have added click-zoom.html to show that the same library correctly supports both modes using the same js code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant