Skip to content

Commit

Permalink
Merge e55976a into 3add585
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Nov 1, 2019
2 parents 3add585 + e55976a commit 549bb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/iosFix.js
Expand Up @@ -5,7 +5,7 @@ import { swalClasses } from '../utils/classes.js'

/* istanbul ignore next */
export const iOSfix = () => {
const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream
const iOS = (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)
if (iOS && !dom.hasClass(document.body, swalClasses.iosfix)) {
const offset = document.body.scrollTop
document.body.style.top = (offset * -1) + 'px'
Expand Down

0 comments on commit 549bb21

Please sign in to comment.