daybrush / infinite-viewer

Infinite Viewer is Document Viewer Component with infinite scrolling.
https://daybrush.com/infinite-viewer/
MIT License
296 stars 33 forks source link

Scrollbar regression? #51

Closed bytasv closed 1 year ago

bytasv commented 1 year ago

Hey there, I noticed that scrollbars started to behave weird, I'm suspecting there might have been a regression introduced at some point?

(Latest version, react) as well as in your live demo: https://daybrush.com/infinite-viewer/

https://github.com/daybrush/infinite-viewer/assets/437214/439a0e7c-d942-4b71-942c-8625ea76f651

If I'm not mistaken this worked fine in the past 🤔

daybrush commented 1 year ago

@bytasv

Scrollbar behavior has recently changed like figma. I'm going to add the old style scrollbar via options.

daybrush commented 1 year ago

@bytasv

A new version of infinite-viewer has been updated.

Added useBounceScrollBar prop, set it to true. You get the same scrollbar as the original InfiniteViewer.

bytasv commented 1 year ago

@daybrush could you please explain how did it change?

I've bumped the version and added the prop but I still see same/similar behaviour 🤔

https://github.com/daybrush/infinite-viewer/assets/437214/570ed47c-5fdb-4db0-8d8d-fa6246fea150

P.s. I can still see the same behaviour on https://daybrush.com/infinite-viewer/

-edit: maybe it wasn't clear from original description, but I want scroll handle to follow mouse cursors as I drag it, while right now for some reason it "lags" behind 🤔

daybrush commented 1 year ago

@bytasv

infinite-viewer's new version is released.

Try it again/

bytasv commented 1 year ago

Works great now, thank you!