ios: disble overscroll fix on iOS 13, it's not needed and breaks scrolling (#618)
This commit is contained in:
parent
f9f5aa1813
commit
f06a083408
1 changed files with 5 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue