safak / youtube

4.96k stars 5.41k forks source link

The React snap-scroll effect in chrome skips an element with mouse scroll - react portfolio project. #3

Open RukshanJS opened 3 years ago

RukshanJS commented 3 years ago

This is related to https://www.youtube.com/watch?v=7WwtzsSHdpI

The snap-scroll effect works fine in Firefox, but in chrome, whenever scroll up or down, one section is always 'skipped'. Tried using --webkit but no luck. Scrolling works correctly even in chrome with arrow key press, drag of scroll slider etc., but not with mouse wheel scroll.

Related question on stackoverflow https://stackoverflow.com/questions/67845873/react-snap-scroll-not-functioning

guerreroz01 commented 3 years ago

I have the same issue