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

Resize or rotate - how to re-initialize? #18

Closed
dcasey160 opened this issue Aug 5, 2016 · 3 comments
Closed

Resize or rotate - how to re-initialize? #18

dcasey160 opened this issue Aug 5, 2016 · 3 comments

Comments

@dcasey160
Copy link

This works great! But if I change the size of the window, or rotate (landscape to/from portrait orientation), the cursor and magnifier are offset.
I added a $(window).resize function:
<script>
$(window).resize(function() {
// Initiate magnification powers
$('.zoom').init();
$('.zoom').magnify();
});
</script>
which works fairly well, but often on mousemove/touchmove, the magnifier "blinks" as it moves (visible then invisible then visible), and it seems more "jerky" on an iPad when this happens.

@thdoan
Copy link
Owner

thdoan commented Aug 5, 2016

Hey thanks for pointing this out -- I'll get this fixed when time permits...

thdoan pushed a commit that referenced this issue Aug 10, 2016
@thdoan
Copy link
Owner

thdoan commented Aug 10, 2016

That has been fixed and will be released in v1.6.9.

@thdoan thdoan closed this as completed Aug 10, 2016
@dcasey160
Copy link
Author

Thank you for the fast turnaround!

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