2 ms·
There will always be the potential for lag because the OS UI thread is updating the native mouse pointer position separately from the browser UI thread updating
by Rapzid 4y ago
There will always be the potential for lag because the OS UI thread is updating the native mouse pointer position separately from the browser UI thread updating the page.
A similar issue occurs with native scrolling and fixed position elements whose positions need update every frame. You must take control of the scrolling in JS in order to prevent jitter.