fix: restore upstream master changes

This commit is contained in:
Florent Chehab 2020-05-06 22:12:56 +02:00
parent dde88ae2fb
commit 3dd889b800
No known key found for this signature in database
GPG Key ID: 9A0CE018889EA246
2 changed files with 4 additions and 6 deletions

View File

@ -114,11 +114,9 @@ function main() {
tempLineTool = true;
whiteboard.ownCursor.hide();
if (whiteboard.drawFlag) {
whiteboard.mouseup({ offsetX: whiteboard.currX, offsetY: whiteboard.currY })
whiteboard.mouseup({ offsetX: whiteboard.prevPos.x, offsetY: whiteboard.prevPos.y })
shortcutFunctions.setTool_line();
whiteboard.prevX = whiteboard.currX;
whiteboard.prevY = whiteboard.currY;
whiteboard.mousedown({ offsetX: whiteboard.currX, offsetY: whiteboard.currY })
whiteboard.mousedown({ offsetX: whiteboard.prevPos.x, offsetY: whiteboard.prevPos.y })
} else {
shortcutFunctions.setTool_line();
}