inuyaksa / jquery.nicescroll

nicescroll plugin for jquery - scrollbars like iphone/ipad
https://nicescroll.areaaperta.com/
3.6k stars 1.67k forks source link

TypeError: AutoHide Stop isn't a function #713

Closed gusbemacbe closed 5 years ago

gusbemacbe commented 6 years ago

Hello Inuyaksa,

In one project, there is an error found in Safari 11.0 console:

TypeError: self.autohidedom.stop is not a function. (In 'self.autohidedom.stop()', 'self.autohidedom.stop' is undefined)

There is no error in Chrome, but the scrollbar doesn't appear.

I tested another project in PHP, there was no error in Chrome and Safari, and the scrollbar appeared normally.

$("html").niceScroll({
  cursorwidth: 2,
  cursoropacitymin: 0.0,
  cursorcolor: '#bd2020',
  cursorborder: 'none',
  cursorborderradius: 0,
  autohidemode: 'leave',
  horizrailenabled: false
});
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.nicescroll.js"></script>
<script type="text/javascript" src="js/popper.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
damiarita commented 6 years ago

Hi,

I have the same issue here

EDIT: No issue. I was using jquery slim. When I used normal jQuery, it worked perfectly!