Skip to content

Commit

Permalink
Wrap screen viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 4, 2020
1 parent d5450f0 commit 9aebf90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Server/Pages/RemoteControl.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.9" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, user-scalable=no" />
<link rel="icon" href="~/favicon.ico" />
<title>Remotely Remote Control</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand Down Expand Up @@ -172,7 +172,7 @@
</div>


<div class="center-aligned">
<div id="screenViewerWrapper" class="center-aligned">
<canvas id="screenViewer" hidden="hidden"></canvas>
<input id="fileTransferInput" hidden="hidden" type="file" />
<textarea id="touchKeyboardTextArea" value=" #"> #</textarea>
Expand Down
16 changes: 14 additions & 2 deletions Server/wwwroot/css/remote-control.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,22 @@ button {
}


#screenViewerWrapper {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: auto;
-ms-touch-action: pan-x pan-y;
touch-action: pan-x pan-y;
}
#screenViewer {
max-width: 99vw;
max-height: 99vh;
z-index: 1;
-ms-touch-action: none;
touch-action: none;
-ms-touch-action: pan-x pan-y;
touch-action: pan-x pan-y;
}

#connectBox {
Expand Down Expand Up @@ -253,6 +263,8 @@ footer {

#touchKeyboardTextArea {
position: fixed;
left: 50%;
transform: translateX(-50%);
top: -100%;
}

Expand Down

0 comments on commit 9aebf90

Please sign in to comment.