I open a partial view in an overlay using jquery (showing a fixed div and disable scrolling for the underlying webpage). This seems to work in chromium and firefox on the desktop, and also in chrome for android, but not in firefox/android:
$('a#manage-albums').click(function(){
$.get( this.href )
.done(function( data ) {
$('div#flvr-overlay-content').html(data);
$('div#flvr-overlay-back').show();
$('html,body').css('overflow-y','hidden');
});
return false;
});
The overlay appears and shows its content, is fixed and everything looks good, but I can still scroll the underlying webpage..
I also have this meta tag in use, if that matters:
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, user-scalable=no" />
How can I disable scrolling (overflow-y) also for firefox on android?
edit:
It looks as if firefox does not like the 'overflow-y'
.
With this line:
$('html,body').css('overflow','hidden');`
the scrolling seems to be stopped / reduced to the height of the firefox menu bar.