Skip to content

Commit

Permalink
Remove transform on video element
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Jul 14, 2020
1 parent f40c331 commit 2a952d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/camera/camera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ export class CameraPWA {


render() {
const videoStreamStyle = this.facingMode == "user" ? { transform: 'scaleX(-1)' } : {};

return (
<div class="camera-wrapper">
<div class="camera-header">
Expand Down Expand Up @@ -337,7 +335,7 @@ export class CameraPWA {
</div>
)}
{this.hasImageCapture() ? (
<video style={videoStreamStyle} ref={(el: HTMLVideoElement) => this.videoElement = el} autoplay playsinline></video>
<video ref={(el: HTMLVideoElement) => this.videoElement = el} autoplay playsinline></video>
) : (
<canvas ref={(el: HTMLCanvasElement) => this.canvasElement = el} width="100%" height="100%"></canvas>
)}
Expand Down

0 comments on commit 2a952d4

Please sign in to comment.