fix: softcoding
This commit is contained in:
parent
0e5d87db87
commit
d8a2fb8b92
|
@ -122,7 +122,7 @@ function TilesPage({
|
|||
if (!events) {
|
||||
return undefined;
|
||||
}
|
||||
const tileSize = [16, 16];
|
||||
const {tileSize} = room.tiles[currentLayer];
|
||||
const stamp = (origin) => {
|
||||
const position = Vector.div([selection[0], selection[1]], tileSize);
|
||||
const size = Vector.div([selection[2], selection[3]], tileSize);
|
||||
|
@ -265,7 +265,7 @@ function TilesPage({
|
|||
type,
|
||||
},
|
||||
) => {
|
||||
const tileSize = [16, 16];
|
||||
const {tileSize} = room.tiles[currentLayer];
|
||||
switch (type) {
|
||||
case 'touchstart':
|
||||
case 'mousedown': {
|
||||
|
|
Loading…
Reference in New Issue
Block a user