I am utilizing the overlayScrollbars plugin to create a custom navigation bar.
Currently, I have set it up so that when the window width is less than 600px, the navbar behaves like a sidebar.
<ul>
<li>test 1</li>
<li>test 2</li>
<li>test 3</li>
</ul>
I have also added some JavaScript code:
$('ul').overlayScrollbars({ });
At the moment, everything works fine when the window width is less than 600px. However, when the width exceeds 600px, the overlayScrollbars still persist and the element's width resembles that of a sidebar.
I am seeking guidance on how to disable the overlayScrollbars() function when the window width exceeds 600px.