Updated notes to always be square
This commit is contained in:
parent
524a6d9aea
commit
30a1319298
@ -26,7 +26,7 @@ function Note({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const noteWidth = map && (mapWidth / map.grid.size.x) * note.size;
|
const noteWidth = map && (mapWidth / map.grid.size.x) * note.size;
|
||||||
const noteHeight = map && (mapHeight / map.grid.size.y) * note.size;
|
const noteHeight = noteWidth;
|
||||||
const notePadding = noteWidth / 10;
|
const notePadding = noteWidth / 10;
|
||||||
|
|
||||||
function handleDragStart(event) {
|
function handleDragStart(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user