fullscreen and no pull to refresh

This commit is contained in:
azykov@mail.ru 2026-06-04 09:52:58 +03:00
parent 409664e67d
commit 8a23a49863
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export const ThreeView = observer(function () {
{ name: 'right', keys: ['ArrowRight', 'd', 'D'] },
{ name: 'jump', keys: ['Space'] },
]}>
<div style={{ position: 'relative', width: '800px', height: '600px', border: '1px solid #333', borderRadius: '8px', overflow: 'hidden' }}>
<div style={{ position: 'fixed', inset: 0, overflow: 'hidden' }}>
<Canvas
// camera={state.world.character.camera}
onPointerMissed={() => state.worldEditor.resetSelectedObject()}

View File

@ -59,8 +59,10 @@
box-sizing: border-box;
}
html,
body {
margin: 0;
overscroll-behavior: none;
}
svg {