bigblocho5 / jquery-nicescroll

Automatically exported from code.google.com/p/jquery-nicescroll
0 stars 0 forks source link

2.9.6 - NiceScroll mousewheel breaks in a DIV with dynamic content size #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I made an example page to demonstrate the bug.

http://jsfiddle.net/T6xnZ/1/

1. NiceScroll on a DIV.
2. The DIV contents are twice the size of their parent's DIV.
3. NiceScroll.resize();
4. User scrolls to bottom.
5. DIV contents are replaced and are now half the size of the parent div.
6. NiceScroll.resize();
7. Scrollbar disappears as there's nothing to scroll.
8. DIV Contents go back to being twice the size of their parent's DIV.
9. NiceScroll.resize();
10. Scrollbar re-appears but mousewheel stops functioning. You can still scroll 
by clicking the scrollbar.
Extra. $('div').getNiceScroll()["0"].doScrollTo(0); can be used to fix the 
mousewheel.

Original issue reported on code.google.com by martijnh...@hotmail.com on 3 Nov 2012 at 4:36

GoogleCodeExporter commented 8 years ago
Thanks for complete example. Issue confirmed.

Original comment by inuya...@gmail.com on 6 Nov 2012 at 10:27

GoogleCodeExporter commented 8 years ago
Fixed on v3 RC7

http://jsfiddle.net/ZnPUA/1/

Original comment by inuya...@gmail.com on 7 Nov 2012 at 8:03

GoogleCodeExporter commented 8 years ago
v3 released

Original comment by inuya...@gmail.com on 17 Dec 2012 at 8:36