Skip to content

Commit

Permalink
disable scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
jallwine committed Oct 21, 2023
1 parent be41fba commit 7a054ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />
<meta name="viewport" content="width=device-width" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
Expand Down
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useRef, useEffect, useCallback } from 'react';
import { Canvas } from '@react-three/fiber'
import Scene from './Scene';

Expand Down
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ code {
width: 100vw;
height: 100vh;
}

html, body {
overflow: hidden;
}
body {
position: relative;
}

0 comments on commit 7a054ec

Please sign in to comment.