mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
fixed urls
changed all urls to be relative (no starting slash) and without /pixel-editor/. Fixed the testing server to deal with these requests (and also include some better logging).
This commit is contained in:
@ -10,7 +10,7 @@ class PanTool extends Tool {
|
||||
super.onStart(mousePos);
|
||||
if (target.className != 'drawingCanvas')
|
||||
return;
|
||||
currFile.canvasView.style.cursor = "url(\'/pixel-editor/pan-held.png\'), auto";
|
||||
currFile.canvasView.style.cursor = "url(\'pan-held.png\'), auto";
|
||||
}
|
||||
|
||||
onDrag(mousePos, target) {
|
||||
@ -31,12 +31,12 @@ class PanTool extends Tool {
|
||||
if (target.className != 'drawingCanvas')
|
||||
return;
|
||||
|
||||
currFile.canvasView.style.cursor = "url(\'/pixel-editor/pan.png\'), auto";
|
||||
currFile.canvasView.style.cursor = "url(\'pan.png\'), auto";
|
||||
}
|
||||
|
||||
onSelect() {
|
||||
super.onSelect();
|
||||
currFile.canvasView.style.cursor = "url(\'/pixel-editor/pan.png\'), auto";
|
||||
currFile.canvasView.style.cursor = "url(\'pan.png\'), auto";
|
||||
}
|
||||
|
||||
onDeselect() {
|
||||
|
Reference in New Issue
Block a user