mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 13:48:12 +00:00
[Fixed Position] Use FixedDragHandle for moves
Use FixedDragHandle to deal with repositioning, WTD-882.
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user