Fix line rendering on remote

This commit is contained in:
matbgn 2022-06-24 17:57:27 +02:00
parent c8a896a908
commit 74e663ebc5

View File

@ -287,7 +287,12 @@ const whiteboard = {
);
_this.sendFunction({
t: _this.tool,
d: [currentPos.x, currentPos.y, _this.startCoords.x, _this.startCoords.y],
d: [
currentPos.x - _this.viewCoords.x,
currentPos.y - _this.viewCoords.y,
_this.startCoords.x - _this.viewCoords.x,
_this.startCoords.y - _this.viewCoords.y
],
c: _this.drawcolor,
th: _this.thickness,
});