hew / react-scroll-horizontal

🖱 🔛 Scroll horizontally with the mouse wheel!
212 stars 53 forks source link

Reaching the end of the horizontal scroll container #91

Closed AshleighRefresh closed 2 years ago

AshleighRefresh commented 3 years ago

Hi there

I'd just like to find out if there is a way to tell when you've reached the end of the horizontal scroll container? I saw the PR which has not yet been merged in, so just wanted to find out if there is a work around that I could use for now?

Thanks!

hew commented 2 years ago

@AshleighRefresh Yeah that PR had some git conflicts that I wasn't too keen fixing, so I'm re-writing the lib completely. V2 will have the onEnd, onBeginning, etc callbacks so you can know when you are at the end.

If you are in a pinch, just clone the PR branch and use that, as others have.