Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

Commit 91accea

Browse files
author
Avaer Kazmer
committed
Engine.jsx cleanup
1 parent 0c0d917 commit 91accea

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ui/src/components/Engine.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import '../css/engine.css';
77
const _postViewportMessage = () => {
88
const engineRender = document.getElementById('engine-render');
99
const bcr = engineRender.getBoundingClientRect();
10-
// const position = [window.screenX + bcr.x, window.screenY + bcr.y];
1110
const viewport = [bcr.x/window.innerWidth, bcr.y/window.innerHeight, bcr.width/window.innerWidth, bcr.height/window.innerHeight];
12-
// const viewport = [window.screenX + bcr.x, window.screenY + bcr.y, bcr.width, bcr.height];
13-
// const viewport = [bcr.x, bcr.y, bcr.width, bcr.height];
1411
window.postMessage({
1512
method: 'viewport',
1613
viewport,

0 commit comments

Comments
 (0)