Fix changes for mouse y.
This commit is contained in:
parent
8961e4d365
commit
7fff8bf0c1
@ -147,7 +147,7 @@ const INTERFACE = {
|
||||
let basis_y = INTERFACE_DATA.Render.offset.y + (14 * apothem);
|
||||
|
||||
let x = (mouse_x - basis_x) / grid_offset_x;
|
||||
let y = -(event.offsetY - basis_y) / apothem;
|
||||
let y = -(mouse_y - basis_y) / apothem;
|
||||
|
||||
let kx = Math.floor(x);
|
||||
let ky = Math.floor(y);
|
||||
@ -178,7 +178,7 @@ const INTERFACE = {
|
||||
let basis_y = INTERFACE_DATA.Render.offset.y + (3 * apothem);
|
||||
|
||||
let x = (mouse_x - basis_x) / grid_offset_x;
|
||||
let y = (event.offsetY - basis_y) / apothem;
|
||||
let y = (mouse_y - basis_y) / apothem;
|
||||
|
||||
let kx = Math.floor(x);
|
||||
let ky = Math.floor(y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user