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

Zoom Image on mouse scroll #539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nierChen
Copy link

I bind a event to mouse scroll:when i'm scrolling up,image magnification;when i'm scrolling down,image shrink.
i changed one file(src/js/lightbox.js),and i added my codes from row 138 to 211.
Maybe lightbox can add this feature in future,it's very cool!

@lokesh
Copy link
Owner

lokesh commented Oct 26, 2016

Cool interaction! This isn't common enough of a usecase to roll it into the main release but I'm going to keep this PR open so others can grab the code if they need it. Tested locally, worked!

@lokesh lokesh changed the title bind event to mouse scroll Zoom Image on mouse scroll Oct 26, 2016
@serdarde
Copy link

serdarde commented Dec 1, 2016

This is really what that plugin needs. @lokesh Please add this on your next release

@lokesh lokesh added this to the 3.0 milestone Apr 21, 2019
@Seevil
Copy link

Seevil commented Apr 13, 2021

Hi, I added this code in the latest version and it doesn't work, I need this feature can you help me?

20210413151010
20210413153108

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

Successfully merging this pull request may close these issues.

4 participants