jstoudt / enscroll

A jQuery plugin for custom scrollbars
http://enscrollplugin.com
Other
73 stars 46 forks source link

Jquery enscroll giving below error in console. #36

Open bineeshtk opened 10 years ago

bineeshtk commented 10 years ago

TypeError: b is undefined

...|0===d||(a+=1,"y"===e?p(l,d):q(l,d),g(c)))})};1===a.touches.length&&(h=a.touches...

enscro....min.js (line 5

jstoudt commented 10 years ago

@bineeshtk I'm not able to reproduce this same error. Which version of enscroll are you using? Which browser does this error appear in? How are you able to produce this error? Thanks!

bineeshtk commented 10 years ago

Hi, Thanks you for the quick repose. I am using enscroll-0.6.0. I got this error in Firefox... 1) Scroll bar should open in mouse over. 2) When ever one scroll bar appeared on mouse over.Try loading another scroll on reload of the page.

Thanks,

jstoudt commented 10 years ago

@bineeshtk I'm afraid I still can't come up with this error in my testing.

Any chance you can throw the unminimized version of enscroll on your page, and re-post the error? Unfortunately, the error above gives me clues as to what the problem may be.

You can grab the unminimized version here: https://raw.githubusercontent.com/jstoudt/enscroll/master/js/mylibs/enscroll.js

Thanks!

ghost commented 9 years ago

@jstoudt, i got the error same as bineeshtk.. When i tried with the unminified version, it crashes at line number 121 with the error - TypeError: data is undefined

settings = data.settings

it happens when i move from a page that has the scrollbar to some other page that doesn't have the scrollbar. And in this case, $(this) becomes the window element (not the scrollbar div element). This causes $(this).data('enscroll') to return undefined.