ios: fix scrolling on iPhone ios 13
This commit is contained in:
parent
0befec4981
commit
181c9bc2a9
2 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 1.0.2
|
||||
|
||||
- bug fixes
|
||||
- broken scrolling on iPhone iOS 13
|
||||
|
||||
## 1.0.1
|
||||
|
||||
- UI
|
||||
|
|
|
|||
|
|
@ -1,9 +1,13 @@
|
|||
// Prevent iOS Pull-To-Refresh
|
||||
|
||||
var iOS13 = navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1,
|
||||
var iOS13 = (
|
||||
navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 // iPad
|
||||
|| navigator.userAgent.match(/iPhone OS 13/) // iPhone
|
||||
),
|
||||
iOS = navigator.platform.match(/iPhone|iPod|iPad/) || iOS13
|
||||
|
||||
if (iOS && !iOS13) {
|
||||
|
||||
// prevent overscroll
|
||||
// breaks scrolling on iOS13 (besides it doesn't seem to be needed)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue