From f06a0834086fecb72c3dbf1a7590173a654d35c0 Mon Sep 17 00:00:00 2001 From: bordun Date: Tue, 28 Apr 2020 18:30:05 +0200 Subject: [PATCH] ios: disble overscroll fix on iOS 13, it's not needed and breaks scrolling (#618) --- src/client/ui/ios.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/ui/ios.js b/src/client/ui/ios.js index 94adc14e..fdfe7dbc 100644 --- a/src/client/ui/ios.js +++ b/src/client/ui/ios.js @@ -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 {