Fixing bidirectional tool handles issues
This commit is contained in:
parent
00a76a6ca5
commit
b672d98c69
@ -29,10 +29,6 @@ export default function (event) {
|
|||||||
const eventData = event.detail;
|
const eventData = event.detail;
|
||||||
const { element } = eventData;
|
const { element } = eventData;
|
||||||
cornerstoneTools.toolCoordinates.setCoords(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
|
// if we have no tool data for this element, do nothing
|
||||||
const toolData = cornerstoneTools.getToolState(element, toolType);
|
const toolData = cornerstoneTools.getToolState(element, toolType);
|
||||||
|
|||||||
@ -255,7 +255,8 @@ const CornerstoneHandleSchema = new SimpleSchema({
|
|||||||
active: {
|
active: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
label: 'Active',
|
label: 'Active',
|
||||||
defaultValue: false
|
defaultValue: false,
|
||||||
|
optional: true
|
||||||
},
|
},
|
||||||
drawnIndependently: {
|
drawnIndependently: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user