google-code-export / jscrollpane

Automatically exported from code.google.com/p/jscrollpane
1 stars 0 forks source link

Events do not get unbound while re-initializing scroll pane #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Do a really stupid thing like re-initialize the pane inside a 
window.onresize :P
2. i.e. Re-initialize the plugin HEAPS of times
3.

What is the expected output? What do you see instead?
I expect smooth mousewheel scrolling yeah.  Instead, I get chunky CPU hoggin' 
badness.

What version of the jScrollPane are you using? On what browser? And operating 
system?
jScrollPane.js 93 2010-06-01 08:17:28, webkit, osx

Please provide a URL to a page displaying the problem.
It's on a local dev site, but you get the idea.

Please provide any additional information below.
Ok so I'm no hot shot programmer so I fixed (read: hacked) it by adding 
$container.unbind('mousewheel'); to line 418.  I understand this may not be 
worth fixing since most people don't reload the plugin a gazillion times.

Original issue reported on code.google.com by AdrianEl...@gmail.com on 18 Jun 2010 at 4:45

GoogleCodeExporter commented 9 years ago
Thanks for the bug report. Looking at it, I unbind the relevant events if you 
re-initialise the scrollpane and it doesn't need to scroll. But as you noticed, 
if you re-initialise the scrollpane and it still needs to scroll then I bind 
the events (not just the mousewheel one) again and again. When I get a little 
bit of spare time I'll fix this - thanks again for the report!

Original comment by kelvin.l...@gmail.com on 18 Jun 2010 at 10:05

GoogleCodeExporter commented 9 years ago
I have just announced the beta of a completely rewritten version of jScrollPane:

http://groups.google.com/group/jscrollpane/browse_thread/thread/c1bc1bf63e3f80d8

Please test and reply on the list if you are still having this issue,

Thanks,

Kelvin

Original comment by kelvin.l...@gmail.com on 17 Aug 2010 at 4:20