Fix position detection for clicks on tiles
This commit is contained in:
parent
a4ff885d14
commit
7481ee0653
|
@ -111,8 +111,8 @@ viewTile columnIndex tileIndex tile =
|
||||||
[ class "tile"
|
[ class "tile"
|
||||||
, on "click" <| (
|
, on "click" <| (
|
||||||
D.map2 (Click columnIndex tileIndex)
|
D.map2 (Click columnIndex tileIndex)
|
||||||
(D.field "x" D.int)
|
(D.field "layerX" D.int)
|
||||||
(D.field "y" D.int)
|
(D.field "layerY" D.int)
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
[ text tile.text
|
[ text tile.text
|
||||||
|
|
Loading…
Reference in a new issue