I want to hide the scrollbar, without disabling scrolling
I used this rule in CSS:
::-webkit-scrollbar {
display: none;
}
I’ve tried also with :
::-webkit-scrollbar {
width: 0;
}
From PC, it works correctly, on mobile, regardless of the browser, I’ve tried both with Safari and Chrome, it does not work.
2
Answers
In addition to the above answer by KnightTheLion, for anyone who finds this question and uses LESS, you can use mixins for convinience:
Here’s an example in usage:
You can always add more mixins and edit existing ones to account for wider screens and more.