I use the setInterval function in a website, and it works fine in IE, Chrome, Firefox and Safari. When i try it on ipad/iphone (safari mobile) i get problem: if i scroll the screen, the setInterval function pauses and it resumes only when i stop scrolling!
is there a way to prevent the function from pausing?
Thanks
I’m afraid no, there’s no way to prevent such behaviour. There’s a plenty of topics here in SO about this problem (more-o-less related), here’s a particularly interesting one. Its summary is simple: