OHIF-328 up/down arrows keys on SR viewport. (#1922)
* Fix arrow key scroll on SR Viewport. * Remove debuggers
This commit is contained in:
parent
55cf9f2306
commit
1f1ef6a3f9
@ -153,8 +153,8 @@ export default function init({ servicesManager, configuration }) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
DragProbe: {
|
DragProbe: {
|
||||||
defaultStrategy: 'minimal'
|
defaultStrategy: 'minimal',
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Abstract tools configuration using extension configuration. */
|
/* Abstract tools configuration using extension configuration. */
|
||||||
|
|||||||
@ -103,8 +103,19 @@ function OHIFCornerstoneSRViewport({
|
|||||||
);
|
);
|
||||||
|
|
||||||
setTrackingUniqueIdentifiersForElement(targetElement);
|
setTrackingUniqueIdentifiersForElement(targetElement);
|
||||||
|
|
||||||
setElement(targetElement);
|
setElement(targetElement);
|
||||||
|
|
||||||
|
const OHIFCornerstoneEnabledElementEvent = new CustomEvent(
|
||||||
|
'ohif-cornerstone-enabled-element-event',
|
||||||
|
{
|
||||||
|
detail: {
|
||||||
|
enabledElement: targetElement,
|
||||||
|
viewportIndex,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
document.dispatchEvent(OHIFCornerstoneEnabledElementEvent);
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user