Skip to content

Commit

Permalink
Fix mask vertical offset when trimming is on
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Oct 3, 2024
1 parent 73f3a38 commit c1e1969
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions viewer/components/refresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function addMasks() {
const img = new Image()
img.src = canvas.toDataURL() ?? ''
img.style.left = canvas.offsetLeft + 'px'
img.style.top = canvas.offsetTop + 'px'
img.style.width = canvas.clientWidth + 'px'
img.style.height = canvas.clientHeight + 'px'

Expand Down

0 comments on commit c1e1969

Please sign in to comment.