Revert "Restore inline zone label editing on canvas (#134)"
This reverts commit 036344d705.
This commit is contained in:
@@ -138,7 +138,7 @@ export default function Editor({ projectId }: EditorProps) {
|
||||
<AppSidebar />
|
||||
</SidebarProvider>
|
||||
<ErrorBoundary key={projectId} fallback={<EditorSceneCrashFallback />}>
|
||||
<Viewer selectionManager="custom" allowZoneLabelEditing>
|
||||
<Viewer selectionManager="custom">
|
||||
<SelectionManager />
|
||||
<FloatingActionMenu />
|
||||
<ExportManager />
|
||||
|
||||
@@ -30,14 +30,10 @@ export const ZoneSystem = () => {
|
||||
// Hide label if zone layer is off OR if in solo mode on a different level
|
||||
const showLabel = visible && !hideInSoloMode
|
||||
const targetOpacity = showLabel ? '1' : '0'
|
||||
const targetPointerEvents = showLabel ? 'auto' : 'none'
|
||||
const labelEl = document.getElementById(`${zoneId}-label`)
|
||||
if (labelEl && labelEl.style.opacity !== targetOpacity) {
|
||||
labelEl.style.opacity = targetOpacity
|
||||
}
|
||||
if (labelEl && labelEl.style.pointerEvents !== targetPointerEvents) {
|
||||
labelEl.style.pointerEvents = targetPointerEvents
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user