feat(draggable): pass previous position to the drag callback

This commit is contained in:
vieron
2013-10-26 19:52:10 +02:00
parent 91ca65721c
commit 055cc0e4f6
+4
View File
@@ -289,10 +289,14 @@
'top' : offset.top
});
var last_position = this.last_position || data.position;
data.prev_position = last_position;
if (this.options.drag) {
this.options.drag.call(this.$player, e, data);
}
this.last_position = data.position;
return false;
};