Hiding circle handle on textboxes
This commit is contained in:
parent
5923a6bff5
commit
004ab7f8ba
@ -675,7 +675,9 @@ function setHandlesVisible (handles, isVisibile) {
|
||||
|
||||
function moveHandle(mouseEventData, toolType, data, handle, doneMovingCallback, preventHandleOutsideImage) {
|
||||
// Make handle invisible while moving
|
||||
handle.drawnIndependently = true;
|
||||
if (!handle.hasBoundingBox) {
|
||||
handle.drawnIndependently = true;
|
||||
}
|
||||
|
||||
var element = mouseEventData.element;
|
||||
var distanceFromTool = {
|
||||
@ -716,7 +718,9 @@ function moveHandle(mouseEventData, toolType, data, handle, doneMovingCallback,
|
||||
|
||||
function mouseUpCallback() {
|
||||
// Enable handle visibility again
|
||||
handle.drawnIndependently = false;
|
||||
if (!handle.hasBoundingBox) {
|
||||
handle.drawnIndependently = false;
|
||||
}
|
||||
$(element).off('CornerstoneToolsMouseDrag', mouseDragCallback);
|
||||
$(element).off('CornerstoneToolsMouseUp', mouseUpCallback);
|
||||
$(element).off('CornerstoneToolsMouseClick', mouseUpCallback);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user