Fix desktop drawing mode creating more than one entity in an unusual way.

This commit is contained in:
Artur Gomes 2017-08-08 16:22:34 +01:00
parent fb696bcbac
commit ca37c5ee94

View file

@ -865,7 +865,7 @@
restoreLastValues();
tablet.gotoWebScreen(APP_URL + "?" + encodeURIComponent(JSON.stringify(_savedSettings)));
break;
case "changeTab":
Settings.setValue("currentTab", event.currentTab);
break;
@ -1075,7 +1075,7 @@
}
function mouseStartLine(event){
if (event.isLeftButton && _rightBrush) {
if (event.isLeftButton && _rightBrush && !_rightBrush.isDrawingLine()) {
_isMouseDrawing = true;
_rightBrush.startLine(getFingerPosition(event.x, event.y), MAX_LINE_WIDTH);
}