Comments (9)
Set overflow
to any value except visible
can resolve it.
from smooth-scrollbar.
I thought of this a few moments after posting ...
<scrollbar data-scrollbar style="max-height: 300px; overflow:hidden">
... duh :) I'm guessing this is what you meant by overscroll.
(Also, this would be an excellent thing to add to the docs.)
from smooth-scrollbar.
@neokio oh my fault, it should be overflow
!
from smooth-scrollbar.
The more I work with your script, the more I realize how incredible it is.
It's everything I've ever wanted from a scroller!
While tweaking the CSS, there's something I can't seem to solve, maybe you have an idea.
See how nicely the thumb fits in the rounded top of the track here?
At the bottom, however, it sinks below the line ...
(The bottom curve of the thumb is cut off.)
Do you have any insight into how I can make the bottom fit nicely?
from smooth-scrollbar.
However, it seems to be OK in my demoπ
from smooth-scrollbar.
Ok good! Then it's something I messed up :)
Thank you for checking!
from smooth-scrollbar.
I'm wondering if you added vertical margin
to the thumb like:
.scrollbar-thumb {
margin: 2px;
}
If so, you should set the vertical one to 0 with:
.scrollbar-thumb {
margin: 0 2px;
}
from smooth-scrollbar.
@neokio here's my suggestion for creating the little gaps:
.scrollbar-thumb {
padding: 2px;
box-sizing: border-box;
background-clip: content-box; /* you may need `!important` rule here */
}
from smooth-scrollbar.
That worked perfectly.
Before, I made .scrollbar-thumb
8px wide, and .scrollbar-track-y
10px wide.
With the above change (!important
was needed), they can be the same size.
VERY cool trick :)
from smooth-scrollbar.
Related Issues (20)
- Damping effect gone after calling ev.stopPropagation() HOT 5
- [Idea/v9] target-agnostic smooth scrolling engine HOT 2
- Anchor Tags not working with horizontal scrolling HOT 4
- Max size of scrollbar thumbs
- scrollbar.scrollTo easing not working HOT 12
- Unable to preventDefault inside passive event listener invocation. HOT 3
- `types` in `package.json` pointing at non-existent file HOT 2
- Hide scrollbar with display:none HOT 1
- auto hide doesn't work HOT 1
- Can't zoom web pages on mobile
- Always visible scrollbar HOT 2
- Next JS Demo with Custom hook
- NextJs throws error when navigating from 404 page to normal page HOT 2
- Different timings when >60Hz display connected
- virtual scroll how do we do it ?
- Sticky header of scrolled content
- cant able to float anything is their any solution
- Scrollbar not working well with column-reverse
- need an offsetTop detect indead of scrollbar.scrollIntoView HOT 5
- Overscroll Glow doesn't hide if scrolling the opposite direction while it's visible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smooth-scrollbar.