I am currently developing a site using drupal.
It's a responsive website, and my problem occurs only on the Android Firefox browser.
When in mobile view (mobile browser, or tiny browser screen on desktop), scrolling down will change the header colours and images, and clicking the menu button will make the menu appear.
My main problem is that the jquery that does all this, will not work in my android firefox browser, but works fine in any other browser. I've put it all in a fiddle.
https://jsfiddle.net/gbwts8a9/7/
The problem appears to be in the
if ($('.l-header').css('position') == 'fixed' )
statement. If I change that to
if(true)
Firefox also does exactly what it's supposed to do. However, no matter what I change it to ( I've tried to check for #l-navbutton.is(:visible) , I've tried $(window).width functions, but no matter what I do, firefox android apparently does not evaluate them as true, even when all other browsers do.
What statement would check for being on a small screen, and works in all mobile browsers?