iOS 6的safari,setInterval不会被触发 [英] iOS 6 safari, setInterval doesn't get fired

查看:439
本文介绍了iOS 6的safari,setInterval不会被触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我滚动窗口 window.setInterval 似乎没有附加/触发当滚动发生或之后。 还有其他人看过同样的问题吗?

It seems if I'm scrolling the window, the window.setInterval doesn't get attached / fired while the scrolling is happening or after. Has anyone else seen the same issue?

我的意思是......


  • 可能导致这种情况的原因是什么?

  • 我该怎么做才能解决这个问题?

推荐答案

iOS停止响应用户触摸的几乎所有内容,以确保它感觉响应。 setInterval问题是已知的,似乎没有解决方法。

iOS halts almost everything in response to user touch to guarantee it feels responsive. The setInterval issue is known, and there doesn't appear to be a workaround.

滚动期间setInterval在iphone / ipad(移动版Safari)中暂停

编辑

在冻结期间,一旦用户释放屏幕,计时器就不会赶上。错过的事件不会被推迟,而是完全丢失(一个错误)。

During the "freeze" the timer will not catch up once the user releases the screen. The missed events are not deferred, but lost entirely (a bug).

这篇关于iOS 6的safari,setInterval不会被触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆