-
Notifications
You must be signed in to change notification settings - Fork 490
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
Wrong behaviour after page resize #38
Comments
Hi @decadence, I'm not able to reproduce this. Can you provide a jsfiddle? |
Send link to site on your email. |
Have similar problem, when I have Firebug open in Firefox inview always returns false, no matter if en element is inview or not, so elements just do not display/behave as they should which is misleading (e.g. indicating bugs where there are none =D) |
Replicated on Chrome v 75.0.3770.100 (Official Build) (64-bit). I have a carousel of iframes at 1366 x 768 which is scaled to fit within the viewport via css transform. Resizing the browser triggers on view event even when elements are not in view. |
Hello.
This plugin works great. But I noticed one issue: after I resize page, event handler get wrong params. Element that is now in viewport gets isInView == false, and element that is under the viewport gets isInView == true. That's why "visible" class is removed and element in viewport just disappears.
After page reload with this page size it works ok.
I use this code:
Webkit based browsers works fine, problem in Opera 12, latest Firefox and IE.
Also I tried disable media-queries with no luck.
Or I have to rebind event handlers after each resize?
Screenshot - http://s7.hostingkartinok.com/uploads/images/2014/12/2e41d91a3098988412bd5634796e8a33.png
The text was updated successfully, but these errors were encountered: