diff --git a/src/js/whiteboard.js b/src/js/whiteboard.js index 38e7bed..4fc85f2 100644 --- a/src/js/whiteboard.js +++ b/src/js/whiteboard.js @@ -467,8 +467,8 @@ const whiteboard = { _this.drawcolor, _this.textboxBackgroundColor, fontsize, - currentPos.x, - currentPos.y, + currentPos.x - _this.viewCoords.x, + currentPos.y - _this.viewCoords.y, txId, isStickyNote, ], @@ -477,8 +477,8 @@ const whiteboard = { _this.drawcolor, _this.textboxBackgroundColor, fontsize, - currentPos.x, - currentPos.y, + currentPos.x - _this.viewCoords.x, + currentPos.y - _this.viewCoords.y, txId, isStickyNote, true