From 48d1c98084f2a82e69bfde64bd093ed27bfb235b Mon Sep 17 00:00:00 2001 From: matbgn Date: Sat, 25 Jun 2022 06:57:05 +0200 Subject: [PATCH] Basic implementation of TextBox on endless state --- src/js/whiteboard.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/whiteboard.js b/src/js/whiteboard.js index 1638537..38e7bed 100644 --- a/src/js/whiteboard.js +++ b/src/js/whiteboard.js @@ -976,7 +976,8 @@ const whiteboard = { top, txId, isStickyNote, - newLocalBox + newLocalBox, + remote ) { var _this = this; console.log(isStickyNote); @@ -984,6 +985,8 @@ const whiteboard = { if (isStickyNote) { cssclass += " stickyNote"; } + left = remote ? left + _this.viewCoords.x : left; + top = remote ? top + _this.viewCoords.y : top; var textBox = $( '