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 2020-07-24 15:32:44 +01:00 committed by GitHub
parent 55cf9f2306
commit 1f1ef6a3f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View File

@ -153,8 +153,8 @@ export default function init({ servicesManager, configuration }) {
},
},
DragProbe: {
defaultStrategy: 'minimal'
}
defaultStrategy: 'minimal',
},
};
/* Abstract tools configuration using extension configuration. */

View File

@ -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(() => {