Last Updated: February 25, 2016
·
3.563K
· opinel

Dealing with iOS 6 killing setTimeouts while dragging or scrolling in Safari

Recently I had to find out that Safari is killing window.setTimeout calls when the user is currently scrolling or dragging the browser's screen. This is only happening on iOS6 and is not effecting older OS versions.
In order to handle this behavior you have to wait for Apple to fix the bug or re-implement the JavaScript timer functions on your own, e.g. use this GIST: https://gist.github.com/3755461

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside