ios: fix scrolling for ios 14+

This commit is contained in:
bordun 2020-09-02 12:27:36 +02:00
parent d8dabdf727
commit c7c39d1f2f
3 changed files with 6 additions and 3 deletions

View file

@ -2,7 +2,7 @@
var iOS13 = (
navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 // iPad
|| navigator.userAgent.match(/iPhone OS 13/) // iPhone
|| navigator.userAgent.match(/iPhone OS (1[3-9])/) // iPhone
),
iOS = navigator.platform.match(/iPhone|iPod|iPad/) || iOS13