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

More visibility to when an element is zoomed and made it easier to remove a zoom object #22

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

Conversation

ScottRoach
Copy link

  • Added class to parent element so it is apparent that the element is zoomed
  • if the parent element has a [data-zoom='img.png'] attribute it will be loaded as the zoomed image
  • added a namespace to each of the event handlers so we can destroy everything easily by calling .unbind('click.zoom mouseenter.zoom mousemove.zoom mouseleave.zoom mousedown.zoom').find('.zoomImg').remove();

I didn't minify this as I am not sure what you are currently using.

…zoomed', if the parent element has a [data-zoom='img.png'] attribute it will be loaded as the zoomed image, and added a namespace to each of the event handlers so we can destroy everything easily by calling .unbind('click.zoom mouseenter.zoom mousemove.zoom mouseleave.zoom mousedown.click').find('.zoomImg').remove();
@Mithgol
Copy link

Mithgol commented Mar 19, 2013

You have a minor typo (mousedown.click instead of mousedown.zoom) in the description.

@ScottRoach
Copy link
Author

Sorry. I updated the notes.

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.

None yet

2 participants