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

Start on hover #12

Open
alexcroox opened this issue Jun 19, 2013 · 5 comments
Open

Start on hover #12

alexcroox opened this issue Jun 19, 2013 · 5 comments

Comments

@alexcroox
Copy link

I'm trying to amend the plugin to work on hover rather than having to click first (a previous click action expands the image area, so I don't want a further click action to enable zoomy)

I've changed most 'click' references to 'mousemove' or 'mouseover' but none seem to trigger zoomy showing until my mouse leaves the image and then re-enters. I'm trying to trigger that same re-enter action without having to leave the image boundaries first (I thought 'mousemove' would accomplish this).

Also what's the best way to "destroy" zoomy, when I click a close button I want to remove clicky from that image so it can be resized and moved out of the way.

@alexcroox
Copy link
Author

I've just noticed you have an event function for that, whoops!

.zoomy('mouseover', {});

However this still does not trigger the magnification if the mouse starts over the image when zoomy is initialised. You still have to move your mouse outside of the image and then back in to start it.

@jcblw
Copy link
Owner

jcblw commented Jun 19, 2013

Ahh I see yeah Ill have to see, zoomys initially was setup to work on mouseover, it must have been messed up when fixing some image loading issues. Might need add in a conditional to start the zoom inside of that event handler for the loading.

@alexcroox
Copy link
Author

OK great, and what would you recommend for removing zoomy from an element?

@jcblw
Copy link
Owner

jcblw commented Jun 21, 2013

ok now i remember, i just pull events off of the elements before image was loaded, it was causing all kinds of issues because things were not initialized at that time, ill have to look into attaching an event before then un binding once everything is there.

oh and to kill zoomy https://gist.github.com/jacoblwe20/1365874

@alexcroox
Copy link
Author

OK great looking forward to that. Thanks for the kill function!

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

No branches or pull requests

2 participants