How to retain original scrollbar styling while keeping the scroll behaviour? #495
Unanswered
azharzaman1
asked this question in
FAQ
Replies: 3 comments
-
I think the native scrollbar is not supported #133 (comment) use |
Beta Was this translation helpful? Give feedback.
0 replies
-
but you can implement arrow buttons with
Scrollbar.addMomentum(0, -40) //up
Scrollbar.addMomentum(0, 40) //down
function arrowRaf(mouseStatus, dir) {
if(mouseStatus === 'up') {
window.requestAnimationFrame(arrowRaf);
return;
}
Scrollbar.addMomentum(0, dir === 'down' ? 40 : -40)
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
check this section of smooth-scrollbar/src/events/keyboard.ts Line 57 in 25ca6b8 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to retain the original scroll styling. I only wish to smooth scrolling.
Beta Was this translation helpful? Give feedback.
All reactions