+ 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
7th May 2017, 7:20 PM
visph
visph - avatar
+ 7
works for me
7th May 2017, 3:01 PM
Burey
Burey - avatar
+ 6
nice you mind adding [SOLVED] to the title of the question?
8th May 2017, 10:08 AM
Burey
Burey - avatar
+ 1
try window.requestAnimationFrame()
7th May 2017, 4:37 PM
MR Programmer
MR Programmer - avatar
+ 1
I always use window.requestAnimationFrame() as i read it from https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
7th May 2017, 5:26 PM
MR Programmer
MR Programmer - avatar