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

Added new feature 'Multiplier' (zoom by click) #40

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

Conversation

mafftor
Copy link
Contributor

@mafftor mafftor commented Sep 18, 2019

I have added a feature which works by click.
Click on image and zoom it easy.

Initialize in this way if you want to disable the multiplier feature

wheelzoom(document.querySelector('img.zoom'), {maxMultiplier: 0});

or set the max of depth

wheelzoom(document.querySelector('img.zoom'), {maxMultiplier: 5});

Copy link

@YgorPerez YgorPerez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested and it works as intended.

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.

2 participants