OHIF-328 up/down arrows keys on SR viewport. (#1922)

* Fix arrow key scroll on SR Viewport.

* Remove debuggers
This commit is contained in:
James Petts authored and GitHub committed 2020-07-24 16:32:44 +02:00
1 parent 55cf9f2306
commit 1f1ef6a3f9
2 files changed
+14 -3

No files matched your search

+2 -2
View File
@@ -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(() => {