3 ms·
> Really I think we just need better APIs from the browsers to customize when a scroll bar is shown (again, not on the page level but within scrollable elements
by Izkata 3y ago
> Really I think we just need better APIs from the browsers to customize when a scroll bar is shown (again, not on the page level but within scrollable elements)
What do you have in mind beyond "always show", "show if needed", and "always hide"? Those have all existed for decades as "overflow: scroll", "overflow: auto", and "overflow: hidden".
- post-it 3y ago`overflow: hidden` hides the actual content. GP wants the element to be scrollable with a hidden scrollbar.
- asutekku 3y agoYou can do that already with: section::-webkit-scrollbar{ display: none; }
- Sohcahtoa82 3y ago> GP wants the element to be scrollable with a hidden scrollbar. If HN allowed emojis, I would reply with just the vomiting emoji.
- marcosdumay 3y agoThere is somebody on another thread asking for "stick to the visible margin of the element". But I guess most people want to change the scrolling behavior or appearance.