Skip to content

Commit

Permalink
fix zoom multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajbharti committed Jun 12, 2024
1 parent d945af9 commit 0a2e316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/stream.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const streamWebCamVideo = (isFrontCamera = true) => {

input.oninput = function (event) {
track.applyConstraints({ advanced: [{ zoom: event.target.value }] });
document.querySelector(".slider").style.left = input.value * 50 + "px";
document.querySelector(".slider").style.left = input.value * 12 + "px";
}
input.hidden = false;
document.querySelector(".range-container").style.visibility = "visible"
Expand Down

0 comments on commit 0a2e316

Please sign in to comment.