Skip to content

Commit

Permalink
fix: Fix Skia Rotation when landscape-left
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jul 23, 2024
1 parent 274f21d commit 0654898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/skia/useSkiaFrameProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function withRotatedFrame(frame: Frame, canvas: SkCanvas, previewOrientation: Or
case 'landscape-left':
// rotate two flips on (0,0) origin and move X + Y into view again
canvas.translate(frame.height, frame.width)
canvas.translate(270, 0)
canvas.rotate(270, 0, 0)
break
case 'portrait-upside-down':
// rotate three flips on (0,0) origin and move Y into view again
Expand Down

0 comments on commit 0654898

Please sign in to comment.