I searched a lot about how to use this plug-in on the Internet, but found that none of them were correct. Ask the master: How to make the initialization of this plug-in display the y-axis scroll bar? Why is the x-axis scroll bar not displayed by default? Also, the use of this plug-in is very different from the old version. If you have time, it is recommended to write a detailed demo about the use of this plug-in. Thanks!
三叔2017-07-05 10:41:45
Found the official document, https://github.com/noraesae/p...
When the parameter suppressScrollY is true, the y-axis scroll bar is unavailable; but when the parameter useBothWheelAxes is true, the Y-axis scroll bar is set to be visible Just set the opacity in the perfect-scrollbar.css file from 0 to 0.9, and set the display:none on the left side of the opacity attribute to display:block.