jQuery resize event bug with mobile Chrome & FF
So apparently Google and the employees at Firefox think it's ok to resize
the browser window when the keyboard pops up. Long story short, I have a
resize event in my jquery.
$(window).on('resize', function () {
if($("#wrapper").width() < 568)
{
// Snap content to mobile
}
else
{
// Snap content back to full view
}
});
This works 100% in Mobile Safari, and in all non mobile browsers but IE of
course.
Here's the issue Chrome/FF are causing. When you select a form field the
keyboard pops up and chrome / ff actually resize the window causing the
.resize() event to be triggered which automatically hides the keyboard
back as the field selected loses focus.
Anyone know of a way around this? This BTW is a browser issue, not an
android one.
Thanks!
No comments:
Post a Comment