We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc22a75 commit 83976d7Copy full SHA for 83976d7
src/components/Board/Board.tsx
@@ -1085,6 +1085,12 @@ const Board = React.forwardRef<BoardActions, BoardProps>(
1085
const relativeX = (pointer.x - imageLeft) / currentScaleRatio;
1086
const relativeY = (pointer.y - imageTop) / currentScaleRatio;
1087
1088
+ console.log(
1089
+ "Pointer relative to image top-left:",
1090
+ relativeX,
1091
+ relativeY,
1092
+ );
1093
+
1094
// Update the last pointer position with coordinates relative to the image
1095
setLastPointerPosition({ x: relativeX, y: relativeY });
1096
if (this.isDragging) {
0 commit comments