mirror of
https://github.com/xibyte/jsketcher
synced 2026-02-14 03:16:22 +01:00
extract check for dumbMode
This commit is contained in:
parent
cdf8d93fe9
commit
441bed2639
2 changed files with 5 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export class DragTool extends Tool {
|
|||
this.lockedValues[i + 1] = this._point.y - this.lockedShifts[i + 1];
|
||||
}
|
||||
this.solver.updateLock(this.lockedValues);
|
||||
if (!e.ctrlKey) {
|
||||
if (!Tool.dumbMode(e)) {
|
||||
this.solveRequest(true);
|
||||
} else {
|
||||
this.obj.translate(dx, dy);
|
||||
|
|
|
|||
|
|
@ -50,6 +50,10 @@ export class Tool {
|
|||
this.viewer.parametricManager.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
static dumbMode(e) {
|
||||
return e.ctrlKey;
|
||||
}
|
||||
}
|
||||
|
||||
Tool.ParseNumber = function(str) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue