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: {
|
||||
defaultStrategy: 'minimal'
|
||||
}
|
||||
defaultStrategy: 'minimal',
|
||||
},
|
||||
};
|
||||
|
||||
/* Abstract tools configuration using extension configuration. */
|
||||
|
||||
@ -103,8 +103,19 @@ function OHIFCornerstoneSRViewport({
|
||||
);
|
||||
|
||||
setTrackingUniqueIdentifiersForElement(targetElement);
|
||||
|
||||
setElement(targetElement);
|
||||
|
||||
const OHIFCornerstoneEnabledElementEvent = new CustomEvent(
|
||||
'ohif-cornerstone-enabled-element-event',
|
||||
{
|
||||
detail: {
|
||||
enabledElement: targetElement,
|
||||
viewportIndex,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
document.dispatchEvent(OHIFCornerstoneEnabledElementEvent);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user