fix viewport overflow in iPadOS safari
This commit is contained in:
parent
474731d829
commit
f9affb550a
1 changed files with 2 additions and 1 deletions
|
@ -447,7 +447,8 @@
|
||||||
*/
|
*/
|
||||||
function checkCapabilities() {
|
function checkCapabilities() {
|
||||||
|
|
||||||
isMobileDevice = /(iphone|ipod|ipad|android)/gi.test( UA );
|
isMobileDevice = /(iphone|ipod|ipad|android)/gi.test( UA ) ||
|
||||||
|
( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 ); // iPadOS
|
||||||
isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );
|
isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );
|
||||||
|
|
||||||
var testElement = document.createElement( 'div' );
|
var testElement = document.createElement( 'div' );
|
||||||
|
|
Loading…
Reference in a new issue