Fix for OutlinePanel
not being scrollable sometimes
Fixes P-179
This commit is contained in:
parent
7f17f985ee
commit
ac9345ddbd
1 changed files with 3 additions and 0 deletions
|
@ -6,10 +6,12 @@ import {useVal} from '@theatre/react'
|
||||||
import getStudio from '@theatre/studio/getStudio'
|
import getStudio from '@theatre/studio/getStudio'
|
||||||
import useHotspot from '@theatre/studio/uiComponents/useHotspot'
|
import useHotspot from '@theatre/studio/uiComponents/useHotspot'
|
||||||
import {Box, prism, val} from '@theatre/dataverse'
|
import {Box, prism, val} from '@theatre/dataverse'
|
||||||
|
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
|
||||||
|
|
||||||
const headerHeight = `44px`
|
const headerHeight = `44px`
|
||||||
|
|
||||||
const Container = styled.div<{pin: boolean}>`
|
const Container = styled.div<{pin: boolean}>`
|
||||||
|
${pointerEventsAutoInNormalMode};
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
|
@ -62,6 +64,7 @@ const OutlinePanel: React.FC<{}> = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container
|
<Container
|
||||||
|
className="cont"
|
||||||
pin={pin || show}
|
pin={pin || show}
|
||||||
onMouseEnter={() => {
|
onMouseEnter={() => {
|
||||||
isOutlinePanelHoveredB.set(true)
|
isOutlinePanelHoveredB.set(true)
|
||||||
|
|
Loading…
Reference in a new issue