diff --git a/public/js/whiteboard.js b/public/js/whiteboard.js index 842f203..5ae748e 100644 --- a/public/js/whiteboard.js +++ b/public/js/whiteboard.js @@ -181,7 +181,9 @@ var whiteboard = { _this.sendFunction({ "t": _this.tool, "d": [currX, currY, _this.startCoords[0], _this.startCoords[1]], "c": _this.drawcolor, "th": _this.thickness }); _this.svgContainer.find("line").remove(); } else if (_this.tool === "pen") { + _this.drawId--; _this.pushPointSmoothPen(currX, currY); + _this.drawId++; } else if (_this.tool === "rect") { if (_this.pressedKeys.shift) { if ((currY - _this.startCoords[1]) * (currX - _this.startCoords[0]) > 0) {