ios: disble overscroll fix on iOS 13, it's not needed and breaks scrolling (#618)

This commit is contained in:
bordun 2020-04-28 18:30:05 +02:00
parent f9f5aa1813
commit f06a083408

View file

@ -1,8 +1,11 @@
// Prevent iOS Pull-To-Refresh
var iOS
var iOS13 = navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1,
iOS = navigator.platform.match(/iPhone|iPod|iPad/) || iOS13
if (navigator.platform.match(/iPhone|iPod|iPad/) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) {
if (iOS && !iOS13) {
// prevent overscroll
// breaks scrolling on iOS13 (besides it doesn't seem to be needed)
var supportsPassiveOption = false
try {