From eaf5bd410b35fe42216982605d12b83db196200b Mon Sep 17 00:00:00 2001 From: yashrajbharticybtekk Date: Thu, 13 Jun 2024 02:22:53 +0530 Subject: [PATCH] fix zoom --- js/stream.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/stream.mjs b/js/stream.mjs index 974d381..77fe9a1 100644 --- a/js/stream.mjs +++ b/js/stream.mjs @@ -47,7 +47,7 @@ export const streamWebCamVideo = (isFrontCamera = true) => { input.oninput = function (event) { track.applyConstraints({ advanced: [{ zoom: event.target.value }] }); document.querySelector(".slider").style.left = - ((input.value + 2) * 120) / capabilities.zoom.max + "px"; + ((input.value - 0.8) * 130) / capabilities.zoom.max + "px"; }; input.hidden = false; document.querySelector(".range-container").style.visibility = "visible";