I have a iOS app that has a WebKit webview (WKWebView) and I want to change the color of the scrollbar in my HTML with CSS while still retaining the touch / throw acceleration scrolling.
I have tried using:
::-webkit-scrollbar-thumb {
background-color: #ff4872;
}
...but to no avail. Because it doesn't change the color unless I set the webkit scrolling setting to scroll:
-webkit-overflow-scrolling: scroll;
...which takes away the Safari-like acceleration scrolling. I would like a pure CSS solution if possible, but I can do JavaScript or JQuery if that is the only option.
JSFiddle: https://jsfiddle.net/rmcadbmq/3/