开发者

Callback jquery.scrollview.js

开发者 https://www.devze.com 2022-12-23 05:14 出处:网络
I\'m using the jquery Scrollview plugin (http://code.google.com/p/jquery-scrollview/) to scroll drag a div with 开发者_开发技巧overflow hidden.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消