+ 8
@Omid Jashni wrote: << window.requestAnimationFrame() has same result as requestAnimationFrame() for me. >>
Logical, as the window object is the object containing the global variable scope ;)
@Omid Jashni wrote: << Just works in the web version of Sololearn not in app and i don't know why!!? >>
In app, some functionnalities of JS are disabled, and in web views in general, some functionnalities are more or less supported, depending of the browser and the engines used for interpreting/parsing Html, Css, JS ^^
Anyway, it seems to be already reported as an issue:
https://issuetracker.google.com/issues/36972329
+ 7
works for me
+ 6
nice
you mind adding [SOLVED] to the title of the question?
+ 1
try
window.requestAnimationFrame()
+ 1
I always use window.requestAnimationFrame()
as i read it from
https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame



