mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed invisible cursor outside of canvas
This commit is contained in:
parent
1a69b48297
commit
d7b04d7699
@ -354,7 +354,7 @@ svg {
|
|||||||
left: 64px;
|
left: 64px;
|
||||||
right: 48px;
|
right: 48px;
|
||||||
top: 48px;
|
top: 48px;
|
||||||
cursor: none;
|
cursor: default;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,6 @@ window.addEventListener("mousedown", function (mouseEvent) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
currentTool.updateCursor();
|
|
||||||
|
|
||||||
if (!currentLayer.isLocked && !currentLayer.isVisible && canDraw) {
|
if (!currentLayer.isLocked && !currentLayer.isVisible && canDraw) {
|
||||||
draw(mouseEvent);
|
draw(mouseEvent);
|
||||||
}
|
}
|
||||||
@ -420,6 +418,13 @@ function draw (mouseEvent) {
|
|||||||
currentLayer.updateLayerPreview();
|
currentLayer.updateLayerPreview();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mouseEvent.target.className == 'drawingCanvas')
|
||||||
|
currentTool.updateCursor();
|
||||||
|
else
|
||||||
|
canvasView.style.cursor = 'default';
|
||||||
|
|
||||||
|
console.log("Cursor: " + canvasView.style.cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
//mousewheel scroll
|
//mousewheel scroll
|
||||||
|
Loading…
Reference in New Issue
Block a user