Fixing bidirectional tool handles issues

This commit is contained in:
Bruno Alves de Faria committed 2018-02-27 07:25:15 -03:00
1 parent 00a76a6ca5
commit b672d98c69
2 files changed
+2 -5

No files matched your search

@@ -29,10 +29,6 @@ export default function (event) {
const eventData = event.detail;
const { element } = eventData;
cornerstoneTools.toolCoordinates.setCoords(eventData);
// if a mouse button is down, do nothing
if (eventData.which !== 0) {
return;
}
// if we have no tool data for this element, do nothing
const toolData = cornerstoneTools.getToolState(element, toolType);
@@ -255,7 +255,8 @@ const CornerstoneHandleSchema = new SimpleSchema({
active: {
type: Boolean,
label: 'Active',
defaultValue: false
defaultValue: false,
optional: true
},
drawnIndependently: {
type: Boolean,