mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
draggable, sortable: include originalPosition in ui hash, implements #3782
This commit is contained in:
parent
d2e43a07c0
commit
fd618d042f
@ -412,6 +412,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
||||
return {
|
||||
helper: this.helper,
|
||||
position: this.position,
|
||||
originalPosition: this.originalPosition,
|
||||
offset: this.positionAbs
|
||||
};
|
||||
}
|
||||
|
@ -1009,6 +1009,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
|
||||
helper: self.helper,
|
||||
placeholder: self.placeholder || $([]),
|
||||
position: self.position,
|
||||
originalPosition: originalPosition,
|
||||
offset: self.positionAbs,
|
||||
item: self.currentItem,
|
||||
sender: inst ? inst.element : null
|
||||
|
Loading…
Reference in New Issue
Block a user