iOS 7 Safari: OS locks up for 4 seconds when clicking/focusing on a HTML input

前端 未结 13 541
不思量自难忘°
不思量自难忘° 2020-12-07 19:36

UPDATE: The issue seems to stem from having many select elements on a page. How random is that?

So here\'s the issue. On iOS 7 Safari, when tapping

13条回答
  •  囚心锁ツ
    2020-12-07 20:11

    iOS 12.1.1 - December 2018

    Here is a simple fix that worked in my case:

    window.scrollTo(0,0) // attached to 'blur' event for the input fields

    While it may not be ideal in terms of UX (especially if you have a form with many fields), it's definitely better than having 10+ second freezing time.

提交回复
热议问题