Skip to content

Commit

Permalink
fix: color area
Browse files Browse the repository at this point in the history
  • Loading branch information
HBS999 committed Oct 29, 2024
1 parent cfd268c commit c6dbd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/colors/color-area/color-area-background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export function ColorAreaBackground<T extends ValidComponent = "div">(
setRect(rect);

return [
xValue(pointerPosition.x - rect.top),
yValue(pointerPosition.y - rect.left),
xValue(pointerPosition.x - rect.left),
yValue(pointerPosition.y - rect.top),
];
};

Expand Down

0 comments on commit c6dbd11

Please sign in to comment.