[Fixed Position] Use FixedDragHandle for moves

Use FixedDragHandle to deal with repositioning, WTD-882.
This commit is contained in:
Victor Woeltjen
2015-02-24 11:29:52 -08:00
parent c306865d87
commit e56bac777e
4 changed files with 49 additions and 77 deletions

View File

@ -14,7 +14,7 @@ define(
* position mode.
* @constructor
*/
function FixedDragHandle(elementHandle, gridSize, commit) {
function FixedDragHandle(elementHandle, gridSize, update, commit) {
var self = {},
dragging;
@ -49,6 +49,10 @@ define(
elementHandle.y(
dragging.y + Math.round(delta[1] / gridSize[1])
);
// Invoke update callback
if (update) {
update();
}
}
}