Skip to content

Commit bc79bbb

Browse files
committed
fix firefox allowing to scroll off of canvas
1 parent 67c4aa5 commit bc79bbb

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

www/index

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
<!DOCTYPE html>
22
<html>
3-
43
<head>
54
<link rel="modulepreload" href="pkg/kalc_plot.js" as="script">
6-
<link rel="modulepreload" href="pkg/snippets/@@RUPL@@/painter.js" as="script">
5+
<link rel="modulepreload" href="pkg/snippets/rupl-490477e6f525bea0/painter.js" as="script">
76
<link rel="preload" href="pkg/kalc_plot_bg.wasm" as="fetch" type="application/wasm" crossorigin>
87
<meta charset="utf-8">
98
<meta name="viewport" content="width=device-width, initial-scale=1.0">
109
<title>kalc plot</title>
1110
<link rel="icon" href="favicon.ico" type="image/x-icon">
1211
<style>
13-
* {
12+
html, body {
1413
margin: 0;
1514
padding: 0;
16-
width: 100%;
15+
overflow: hidden;
1716
height: 100%;
17+
width: 100%;
18+
}
19+
canvas {
1820
display: block;
21+
position: fixed;
22+
top: 0;
23+
left: 0;
24+
width: 100vw;
25+
height: 100vh;
1926
}
2027
</style>
2128
</head>
22-
2329
<body>
2430
<canvas id="canvas"></canvas>
2531
<noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
2632
<script type="module" crossorigin="anonymous">
2733
import init from './pkg/kalc_plot.js'; async function run() { await init(); } run();
2834
</script>
2935
</body>
30-
3136
</html>

0 commit comments

Comments
 (0)