0

We are working on a markup with customized scrollbars. For this task we use ::-webkit.

::-webkit-scrollbar {
width: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 0px;
  background-color: #bfbfbf;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(255,51,0);
  border-radius: 0;
}

Is working great on desktop devices (chrome)... But on Android Chrome nothing happens. Is this not working on Mobile? Any workaround or other solution?

Thanks!

1 Answers1

2

I've been having the same problem... So far, the only explanation I've been able to find is that, the custom scrollbars works only if the body has position: absolute.

I don't like this solution as it affects some other features in my site, but unfortunately, there isn't any other way I've been able to show custom scrollbars in mobile...

I'm not sure why it is so... Should be simple enough, but for some reason, it's too complicated!

Anam
  • 56
  • 1
  • 6