Did you verify this is a real problem
Yes
Tell us about the problem
setInterval callbacks are essentially paused during a touch interaction. This includes touches that happen via a scrollview, or gestures (like a pan gensture).
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 1.7.0
- Cross-platform modules: 1.7.1
- Runtime(s): 1.7.0
- Plugin(s): n/a
Please tell us how to recreate the issue in as much detail as possible.
Create a callback that fires with setInterval, say, every 20 milliseconds (frequently enough for doing a dynamic animation, like with physicsjs). Create a scrollview or add a gesture recognizer to a view, and note that when the app is processing touch events, the setInterval callback does not fire. Once the touch interaction is done processing, the setInterval callback resumes.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
setInterval(()=>console.log(Date.now()));
// scrollview or something that handles touches.
Reactions are currently unavailable
Did you verify this is a real problem
Yes
Tell us about the problem
setInterval callbacks are essentially paused during a touch interaction. This includes touches that happen via a scrollview, or gestures (like a pan gensture).
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Create a callback that fires with setInterval, say, every 20 milliseconds (frequently enough for doing a dynamic animation, like with physicsjs). Create a scrollview or add a gesture recognizer to a view, and note that when the app is processing touch events, the setInterval callback does not fire. Once the touch interaction is done processing, the setInterval callback resumes.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.