문제

I'm using the jquery Scrollview plugin (http://code.google.com/p/jquery-scrollview/) to scroll drag a div with overflow hidden.

My question is how I go about to get a callback function on this?

Anyone?

도움이 되었습니까?

해결책

When are you wanting the callback function to be fired?

The plugin itself already has several events bound, for example:

.mouseout(function(){ self.stopgrab() })
.mouseup(function(){ self.stopgrab() })

Can you piggy-back on these?

Edit:

Try this for the mouseup

$('.image:eq('+examplevariable+')').scrollview({ 
    grab:"images/openhand.cur", 
    grabbing:"images/closedhand.cur" 
}).mouseup(function(){
    alert("test mouseup");
});

The existing mouseup functionality should be preserved, and this tagged onto the end.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top