Skip to content

Commit

Permalink
Do not let users zoom or pinch in the document.
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed May 2, 2020
1 parent 9ebbc04 commit 31dd23b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
12 changes: 6 additions & 6 deletions www/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ body, html {
margin: 0;
padding: 0;
overflow: hidden;
}
canvas {
position:absolute;
width: 100%;
height: 100%;
background: #002b36;
touch-action: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
Expand All @@ -18,3 +12,9 @@ canvas {
-ms-user-select: none;
user-select: none;
}
canvas {
position:absolute;
width: 100%;
height: 100%;
background: #002b36;
}
33 changes: 16 additions & 17 deletions www/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Weylus</title>
<link rel="stylesheet" href="style.css">
<script src="lib.js"></script>
<script>
let password = "{{password}}";
let websocket_pointer_port = "{{websocket_pointer_port}}";
let websocket_video_port = "{{websocket_video_port}}";
run(password, websocket_pointer_port, websocket_video_port);
</script>
</head>

<head>
<title>Weylus</title>
<link rel="stylesheet" href="style.css">
<script src="lib.js"></script>
<script>
let password = "{{password}}";
let websocket_pointer_port = "{{websocket_pointer_port}}";
let websocket_video_port = "{{websocket_video_port}}";
run(password, websocket_pointer_port, websocket_video_port);
</script>
</head>

<body>
<canvas id="canvas">
Your browser does not support canvas element.
</canvas>
</body>
<body>
<canvas id="canvas">
Your browser does not support canvas element.
</canvas>
</body>

</html>

0 comments on commit 31dd23b

Please sign in to comment.