FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

setInterval callback is not fired while touch events are being processed · Issue #2116 · NativeScript/NativeScript · GitHub

setInterval callback is not fired while touch events are being processed #2116

Description

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. 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL