diff --git a/platform/commonUI/general/src/MCTDrag.js b/platform/commonUI/general/src/MCTDrag.js index dacc2a66f0..4c892f999f 100644 --- a/platform/commonUI/general/src/MCTDrag.js +++ b/platform/commonUI/general/src/MCTDrag.js @@ -28,6 +28,10 @@ define( function continueDrag(event) { updatePosition(event); fireListener("mctDrag"); + + // Don't show selection highlights, etc + event.preventDefault(); + return false; } function endDrag(event) { @@ -37,14 +41,27 @@ define( continueDrag(event); fireListener("mctDragUp"); + + // Clear out start-of-drag position + initialPosition = undefined; + + // Don't show selection highlights, etc + event.preventDefault(); + return false; } function startDrag(event) { body.on("mouseup", endDrag); body.on("mousemove", continueDrag); + updatePosition(event); + fireListener("mctDragDown"); fireListener("mctDrag"); + + // Don't show selection highlights, etc + event.preventDefault(); + return false; } element.on("mousedown", startDrag);