Minor changes

This commit is contained in:
Aria Minaei 2021-09-12 21:21:49 +02:00
parent b5fa729e5d
commit eea1f424fc
4 changed files with 9 additions and 2 deletions

View file

@ -21,5 +21,6 @@
}, },
"eslint.run": "onSave", "eslint.run": "onSave",
"eslint.lintTask.enable": true, "eslint.lintTask.enable": true,
"eslint.lintTask.options": ". --ext ts,tsx --ignore-path=.gitignore --rulesdir ./devEnv/eslint/rules" "eslint.lintTask.options": ". --ext ts,tsx --ignore-path=.gitignore --rulesdir ./devEnv/eslint/rules",
"jest.jestCommandLine": "yarn jest"
} }

View file

@ -59,7 +59,11 @@ function App() {
const [bgIndex, setBgIndex] = useState(0) const [bgIndex, setBgIndex] = useState(0)
const bg = bgs[bgIndex] const bg = bgs[bgIndex]
return ( return (
<div onClick={() => setBgIndex((bgIndex) => (bgIndex + 1) % bgs.length)}> <div
onClick={() => {
// return setBgIndex((bgIndex) => (bgIndex + 1) % bgs.length)
}}
>
<Canvas dpr={[1.5, 2]} linear shadows frameloop="demand"> <Canvas dpr={[1.5, 2]} linear shadows frameloop="demand">
<SheetProvider getSheet={() => getProject('Space').sheet('Scene')}> <SheetProvider getSheet={() => getProject('Space').sheet('Scene')}>
<fog attach="fog" args={[bg, 16, 30]} /> <fog attach="fog" args={[bg, 16, 30]} />

View file

@ -43,6 +43,7 @@ const Container = styled(PointerEventsHandler)`
&.invisible { &.invisible {
pointer-events: none !important; pointer-events: none !important;
opacity: 0; opacity: 0;
transform: translateX(1000000px);
} }
` `

View file

@ -86,6 +86,7 @@ const ClosePanelButton = styled.button`
*/ */
const F2 = styled(F2Impl)` const F2 = styled(F2Impl)`
position: relative; position: relative;
overflow: hidden;
&:after { &:after {
z-index: 10; z-index: 10;