Skip to content

Commit

Permalink
fix the delete button position for I Fancy Cats
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed May 8, 2024
1 parent eb85430 commit 8b56fe8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const EllipseModel = types

deleteButtonPosition(scale) {
const theta = DELETE_BUTTON_ANGLE * (Math.PI / 180)
const dx = ((self.rx + BUFFER) / scale) * Math.cos(theta)
const dy = ((self.ry + BUFFER) / scale) * Math.sin(theta)
const dx = (self.rx + BUFFER) * Math.cos(theta)
const dy = (self.ry + BUFFER) * Math.sin(theta)
return {
x: dx,
y: dy
Expand Down

0 comments on commit 8b56fe8

Please sign in to comment.