mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed #46
This commit is contained in:
parent
be852d9aae
commit
1d9ef0f372
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user