Skip to content

Commit

Permalink
fix viewport overflow in iPadOS safari
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 11, 2019
1 parent 474731d commit f9affb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit f9affb5

Please sign in to comment.