I can hide the scrollbar in Chrome with:
# app.css loaded in <head>
html ::-webkit-scrollbar {
display: none;
}
Now I want to manually hide the scrollbar, so I try to run the following with jQuery:
$("html ::-webkit-scrollbar").css("display", "none")
However, the scrollbar stays visible during scrolling.
How can I manually hide/show the scrollbar?
$('html').addClass('hide-scrolling')(adapted from answer) doesn't work for me though. Scrollbar stays visible. Is this how it's supposed to work?