Minor changes
This commit is contained in:
parent
b5fa729e5d
commit
eea1f424fc
4 changed files with 9 additions and 2 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]} />
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue