Displaying 1 result from an estimated 1 matches for "onrevert".
2008 Jun 19
2
Capturing draggable revert
...sts about this, but no answers.
I would like to be able to call a function when a draggable revert
occurs. What I''m trying to do is replace a photo with an icon on drag
(which I''ve accomplished), but I need to swap it back if the revert
fires.
I really, really wish there were an onRevert() option, but there
isn''t, so I guess I''ll have to hack my own.
I think this is where I''d hook it in (line 231 in 1.8.0):
reverteffect: function(element, top_offset, left_offset) {
var dur =
Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02;...