Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Date.now() should obviously be replaced by performance.now(), that would solve the clock problem.

But you raise a good point that the author is storing the previous state in CSS. I guess the author's counter argument would be that they can still avoid storing the current direction.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: