Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Custom scrollbar not working properly #19

Closed
S-n-d opened this issue Sep 27, 2020 · 3 comments
Closed

Custom scrollbar not working properly #19

S-n-d opened this issue Sep 27, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@S-n-d
Copy link

S-n-d commented Sep 27, 2020

First of all great work Ash, and thank you for sharing it! Giving this a shot in a new project.

I'm encountering the following problem: my .asscrollbar__handle is being set the same height of the viewport and isn't translating on scroll. It does show on scroll and hides on stop.

I'm not quite sure what I might be doing wrong but I've been looking at the codepen demo and my HTML structure is about the same: my <main> is the .asscroll-container and the .asscrollbar is its sibling. Only difference is that there's a <nav> element outside the .asscroll-container but if I remove it the problem remains.

Any thoughts would be appreciated!

@S-n-d
Copy link
Author

S-n-d commented Sep 28, 2020

It looks like the issue only occurs when the total page length is less than ~200vh.

@ashthornton ashthornton self-assigned this Sep 29, 2020
@ashthornton ashthornton added the bug Something isn't working label Sep 29, 2020
@ashthornton
Copy link
Owner

Thanks for pointing this out @S-n-d , this should now be fixed in the latest version (v.1.6.5)

@S-n-d
Copy link
Author

S-n-d commented Oct 8, 2020

Great work Ash! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants