Callback jquery.scrollview.js
-
21-09-2019 - |
Question
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?
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow