Skip to content

Commit

Permalink
Update clientX dimensions to scrollX dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkryst authored Dec 1, 2023
1 parent 1cc969e commit 809f9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
await camera.setVideoElement(document.getElementsByTagName("video")[0]);

const videoElement = await camera.getVideoElement();
glContext.setSize(videoElement.clientWidth, videoElement.clientHeight, false);
glContext.setSize(videoElement.scrollWidth, videoElement.scrollHeight, false);

if (!bodyDetector.isRunning()) {
bodyDetector.start(15, videoElement, mesh);
Expand Down

0 comments on commit 809f9ac

Please sign in to comment.