Disable double click for now. (#1872)
This commit is contained in:
1 parent
9099e197fb
commit
25ded882ec
5 files changed
+71
-34
No files matched your search
@@ -404,6 +404,8 @@ function OHIFCornerstoneSRViewport({
|
||||
? _viewportLabels[firstViewportIndexWithMatchingDisplaySetUid]
|
||||
: '';
|
||||
|
||||
// TODO -> disabled double click for now: onDoubleClick={_onDoubleClick}
|
||||
|
||||
return (
|
||||
<>
|
||||
<ViewportActionBar
|
||||
@@ -434,14 +436,15 @@ function OHIFCornerstoneSRViewport({
|
||||
spacing:
|
||||
PixelSpacing && PixelSpacing.length
|
||||
? `${PixelSpacing[0].toFixed(2)}mm x ${PixelSpacing[1].toFixed(
|
||||
2
|
||||
)}mm`
|
||||
2
|
||||
)}mm`
|
||||
: '',
|
||||
scanner: ManufacturerModelName || '',
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<div className="relative flex flex-row w-full h-full overflow-hidden" onDoubleClick={_onDoubleClick}>
|
||||
|
||||
<div className="relative flex flex-row w-full h-full overflow-hidden">
|
||||
<CornerstoneViewport
|
||||
onElementEnabled={onElementEnabled}
|
||||
viewportIndex={viewportIndex}
|
||||
|
||||
@@ -292,6 +292,8 @@ function TrackedCornerstoneViewport({
|
||||
|
||||
const showNavArrows = isTracked && viewportIndex === activeViewportIndex;
|
||||
|
||||
// TODO -> disabled double click for now: onDoubleClick={_onDoubleClick}
|
||||
|
||||
return (
|
||||
<>
|
||||
<ViewportActionBar
|
||||
@@ -328,10 +330,7 @@ function TrackedCornerstoneViewport({
|
||||
}}
|
||||
/>
|
||||
{/* TODO: Viewport interface to accept stack or layers of content like this? */}
|
||||
<div
|
||||
className="relative flex flex-row w-full h-full overflow-hidden"
|
||||
onDoubleClick={_onDoubleClick}
|
||||
>
|
||||
<div className="relative flex flex-row w-full h-full overflow-hidden">
|
||||
<CornerstoneViewport
|
||||
onElementEnabled={onElementEnabled}
|
||||
viewportIndex={viewportIndex}
|
||||
@@ -416,7 +415,6 @@ function _getCornerstoneStack(displaySet, dataSource) {
|
||||
return stack;
|
||||
}
|
||||
|
||||
|
||||
function _onDoubleClick() {
|
||||
const cancelActiveManipulatorsForElement = cornerstoneTools.getModule(
|
||||
'manipulatorState'
|
||||
@@ -427,7 +425,6 @@ function _onDoubleClick() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Builds the viewport data from a datasource and a displayset.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user