diff options
author | Hakim El Hattab | 2019-10-11 09:23:44 +0200 |
---|---|---|
committer | Hakim El Hattab | 2019-10-11 09:23:44 +0200 |
commit | f9affb550ac49424c745eb8116c419f5d1ab3278 (patch) | |
tree | 9f65a2b243b326486d5d2577c4ed6382db21dd42 | |
parent | 474731d829821dbd63cedd45b2bb71349fded741 (diff) |
fix viewport overflow in iPadOS safari
-rw-r--r-- | js/reveal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index ef7ce49..9cb2f48 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -447,7 +447,8 @@ */ 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 ); var testElement = document.createElement( 'div' ); |