mobile: hide initial menu animation in landscape

This commit is contained in:
Sören Weber 2022-03-13 12:36:48 +01:00
parent 30bf0250e4
commit bc018cbb0d
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
4 changed files with 8 additions and 5 deletions
static/js

View file

@ -1,6 +1,9 @@
var isIE = /*@cc_on!@*/false || !!document.documentMode;
if( !isIE ){
if( isIE ){
// we don't support sidebar flyout in IE
document.querySelector( 'body' ).classList.remove( 'mobile-support' );
}
else{
document.querySelector( 'body' ).classList.add( 'mobile-support' );
}
var touchsupport = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)