Skip to content

Commit 83976d7

Browse files
fix
1 parent dc22a75 commit 83976d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Board/Board.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,12 @@ const Board = React.forwardRef<BoardActions, BoardProps>(
10851085
const relativeX = (pointer.x - imageLeft) / currentScaleRatio;
10861086
const relativeY = (pointer.y - imageTop) / currentScaleRatio;
10871087

1088+
console.log(
1089+
"Pointer relative to image top-left:",
1090+
relativeX,
1091+
relativeY,
1092+
);
1093+
10881094
// Update the last pointer position with coordinates relative to the image
10891095
setLastPointerPosition({ x: relativeX, y: relativeY });
10901096
if (this.isDragging) {

0 commit comments

Comments
 (0)