Skip to content

Commit

Permalink
[NOJIRA] - adding 5x zoom slider for scan for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Sreenadh S <[email protected]>
  • Loading branch information
sree96 committed Oct 10, 2024
1 parent 149008a commit d991fc3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
CONSTRAINTS_IDEAL_WIDTH,
FRAME_PROCESS_INTERVAL_MS,
INITIAL_ZOOM_LEVEL,
ZOOM_STEP,
ZOOM_STEP_PERCENTAGE,
ScanSessionExpiryTime,
THROTTLE_FRAMES_PER_SEC,
} from "../../../utils/config";
Expand Down Expand Up @@ -222,9 +222,9 @@ function QrScanner() {
ref={videoRef}
className="object-cover rounded-lg"
style={{
transform: `scale(${1 + zoomLevel / ZOOM_STEP}) translateZ(0)`,
transform: `scale(${1 + zoomLevel / ZOOM_STEP_PERCENTAGE}) translateZ(0)`,
willChange: "transform",
WebkitTransform: `scale(${1 + zoomLevel / ZOOM_STEP}) translateZ(0)`,
WebkitTransform: `scale(${1 + zoomLevel / ZOOM_STEP_PERCENTAGE}) translateZ(0)`,
}}
/>
</div>
Expand Down

0 comments on commit d991fc3

Please sign in to comment.