-
Notifications
You must be signed in to change notification settings - Fork 269
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
Match does not trigger on subsequent change of orientation. #109
Comments
Are you still having an issue? |
I'm having this same behaviour. iPad3 on ios7 latest with safari and chrome. |
My situation is this: I have an image gallery which calculates some heights for elements in window resize. I have noticed that when the gallery is active, the match triggers correctly every time the match happens. But when the page has no gallery, the match function triggers only the first time. I bet the page repaint is somehow involved in this matter. Tested with version 2.1.1 and 2.1.0 |
This solved my case: http://devrandom.com/test/ios7-matchmedia/fixed.html |
Thanks for the input @vennamo. I think a shim as you described is the best thing to do rather than add hacks to enquire itself. |
EnquireJS work as expected when orientation has changed, either from landscape to portrait or from portrait to landscape. However this only work the first time the orientation has changed, on subsequent change of orientation, matches stop triggering.
Problem is observed on a ipad2 running ios 7 mobile safari.
The following is the code snippet i'm running
Any idea?
The text was updated successfully, but these errors were encountered: