From 004ab7f8baafef0ab1868e8db5bcda230b100e14 Mon Sep 17 00:00:00 2001 From: Bruno Alves de Faria Date: Wed, 6 Sep 2017 15:34:42 -0300 Subject: [PATCH] Hiding circle handle on textboxes --- .../client/compatibility/bidirectionalTool.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Packages/ohif-lesiontracker/client/compatibility/bidirectionalTool.js b/Packages/ohif-lesiontracker/client/compatibility/bidirectionalTool.js index 274ef346c..594a90d4f 100644 --- a/Packages/ohif-lesiontracker/client/compatibility/bidirectionalTool.js +++ b/Packages/ohif-lesiontracker/client/compatibility/bidirectionalTool.js @@ -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);