You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because in order to provide accurate intervals, we actually must calculate time difference each time we use the method in browser, as it gets throttled during idle time.
when interval is started, tick called in first time with zero
every tick call - time argiment increment by timeout (maybe
perfomance.now()
)usage
reference: https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame (callback argument)
The text was updated successfully, but these errors were encountered: