okonet/react-scroll-sync

why use requestAnimationFrame to achieve synchronous scrolling instead of directly updating element?

projectcss opened this issue · 1 comments

why use requestAnimationFrame to achieve synchronous scrolling instead of directly updating element?

This ensures that we’re not blocking the main thread.