Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add click to zoom option #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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