StephenWeiXu / react-scrollspy-nav

react scrollspy nav component
https://stephenweixu.github.io/react-scrollspy-nav
MIT License
30 stars 15 forks source link

Lagging on chrome Version 87.0.4280.66 (Official Build) (64-bit) #40

Open misbahkhalilaz opened 4 years ago

misbahkhalilaz commented 4 years ago

during scroll via react-scrollspy-nav it is lagging too much on chrome Version 87.0.4280.66 (Official Build) (64-bit) with default scrollDuration, but same app is working fine on firefox 82.0.3 (64-bit).

misbahkhalilaz commented 3 years ago

I've resolved the problem, it lags when UI updates while scrolling, disabling all mouse event during scroll will surely resolve the problem.

misbahkhalilaz commented 3 years ago

Mr. @StephenWeiXu, it is requested to kindly support disable mouse events during scroll option in this library. It'll resolve all lagging issues made due UI updates during scroll like too many hover events occurring during scroll will be a problem.