This commit is contained in:
Nicola 2021-12-12 22:22:46 +01:00
parent be852d9aae
commit 1d9ef0f372

View File

@ -59,7 +59,7 @@ const ToolManager = (() => {
else if (Input.isAltPressed()) {
tools["eyedropper"].onStart(mousePos, mouseEvent.target);
}
else {
else if (!currFile.currentLayer.isLocked){
currTool.onStart(mousePos, mouseEvent.target);
}
break;
@ -91,7 +91,7 @@ const ToolManager = (() => {
else if (Input.isAltPressed()) {
tools["eyedropper"].onDrag(mousePos, mouseEvent.target);
}
else {
else if (!currFile.currentLayer.isLocked){
currTool.onDrag(mousePos, mouseEvent.target);
}
break;
@ -122,7 +122,7 @@ const ToolManager = (() => {
else if (Input.isAltPressed()) {
tools["eyedropper"].onEnd(mousePos, mouseEvent.target);
}
else {
else if (!currFile.currentLayer.isLocked){
currTool.onEnd(mousePos);
}
break;