Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollbar regression? #51

Closed
bytasv opened this issue May 29, 2023 · 5 comments
Closed

Scrollbar regression? #51

bytasv opened this issue May 29, 2023 · 5 comments
Labels

Comments

@bytasv
Copy link

bytasv commented May 29, 2023

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/

CleanShot.2023-05-29.at.22.17.40.mp4

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

@daybrush
Copy link
Owner

daybrush commented May 30, 2023

@bytasv

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

@daybrush
Copy link
Owner

@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
Copy link
Author

bytasv commented May 31, 2023

@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 🤔

CleanShot.2023-05-31.at.08.07.15.mp4

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
Copy link
Owner

@bytasv

infinite-viewer's new version is released.

Try it again/

daybrush added a commit that referenced this issue May 31, 2023
@bytasv
Copy link
Author

bytasv commented Jun 1, 2023

Works great now, thank you!

@bytasv bytasv closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants