Perfect-scrollbar: Is it possible to auto hide the scrollbar when no mouse action?

Created on 14 Mar 2020  路  2Comments  路  Source: mdbootstrap/perfect-scrollbar

Currently the scrollbar will be hide when the mouse move out the scrollbar container, is it possible to auto hide the scrollbar when no mouse action such as in 5 seconds?

Make sure these boxes are checked before submitting your issue -- thank you!

  • [x] Check FAQ and Caveats
  • [x] Search if there's already one reported in Issues
  • [ ] Prepare a JSFiddle reproducing the issue
  • [ ] Provide a page or source code where the issue can be checked

Most helpful comment

A very good question.
another question - is it possible to not hide it, but make always visible?

All 2 comments

A very good question.
another question - is it possible to not hide it, but make always visible?

@seyfer If you wanted to force the scrollbar to always be visible you can do that by overriding the class, e.g. for the vertical scrollbar:

.ps__rail-y {
    display: block !important;
    opacity: 0.6 !important;
}

You could do the same for the horizontal scrollbar too using the .ps__rail-x class

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gpluess picture gpluess  路  4Comments

zadremal picture zadremal  路  5Comments

Gurkirat2210 picture Gurkirat2210  路  5Comments

GNSubrahmanyam picture GNSubrahmanyam  路  3Comments

DevTony picture DevTony  路  3Comments