How to stop auto scrolling of jScrollPane when jquery loaded more data?
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. arrowScrollOnHover: true
2. jquery load more data when scroll to bottom.
3. auto scrolling downward won't stop when mouseout after jquery load more data.
What is the expected output? What do you see instead?
What version of the jScrollPane are you using? On what browser? And operating
system?
jScrollPane 2.0, Firefox and IE. You can see the problem output obviously if
you do it on Localhost/WAMP.
Please provide any additional information below.
I am using jScrollPane, I set the setting to auto scrolling up/down when hover
the arrow. When scroll to bottom, jquery will fetch more data from other page
and display into the div, the problem is the auto scrolling down didn't stop at
this moment, it keep auto scrolling down continuously non-stop. How to make it
stop auto scrolling when it reach the bottom? It must stop when jquery loaded
more data. My codes :
var settings = {
showArrows: true,
arrowScrollOnHover: true
};
pane.bind(
'jsp-scroll-y',
function(event, scrollPositionY, isAtTop, isAtBottom)
{
if (isAtBottom == true) {
var barposition = scrollPositionY;
$.get('test7a.php?lastmsgID=' + lastmsgid, '', function(newitems){
api.getContentPane().append(newitems);
api.reinitialise();
api.scrollToY(barposition,true); //even after i set the scroll to position, it will still continue auto scrolling downward.
});
}
}
Original issue reported on code.google.com by 2...@live.com.my
on 26 May 2011 at 1:52
GoogleCodeExporter commented
it keep auto scrolling down continuously non-stop even cursor already move out
from the arrow. How to fix this bug? I guess mouseout event fail to carry out
after jquery load more data.
Original comment by 2...@live.com.my
on 26 May 2011 at 1:58
GoogleCodeExporter commented
This is the wrong place to get support for jScrollPane.
See http://jscrollpane.kelvinluck.com/#support for better places to ask...
Original comment by kelvin.l...@gmail.com
on 26 May 2011 at 2:00
- Changed state: Invalid