Skip to content

Commit

Permalink
fix: checkCollision
Browse files Browse the repository at this point in the history
  • Loading branch information
le-ar committed Jan 17, 2024
1 parent 8397594 commit 12abe10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function checkCollision(a: MeasuredDimensions, b: MeasuredDimensions) {
a.pageX < b.pageX + b.width &&
a.pageX + a.width > b.pageX &&
a.pageY < b.pageY + b.height &&
a.pageY + a.height < b.pageY
a.pageY + a.height > b.pageY
);
}

Expand Down

0 comments on commit 12abe10

Please sign in to comment.