Fix position detection for clicks on tiles

This commit is contained in:
Emi Simpson 2023-06-28 22:19:45 -04:00
parent a4ff885d14
commit 7481ee0653
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 2 additions and 2 deletions

View File

@ -111,8 +111,8 @@ viewTile columnIndex tileIndex tile =
[ class "tile"
, on "click" <| (
D.map2 (Click columnIndex tileIndex)
(D.field "x" D.int)
(D.field "y" D.int)
(D.field "layerX" D.int)
(D.field "layerY" D.int)
)
]
[ text tile.text