diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Mapbox/Element.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mapbox/Element.elm b/src/Mapbox/Element.elm index 8eb9132..9b29392 100644 --- a/src/Mapbox/Element.elm +++ b/src/Mapbox/Element.elm @@ -232,7 +232,7 @@ type alias TouchEvent = decodePoint = - Decode.map2 (\a b -> ( a, b )) (Decode.field "x" Decode.int) (Decode.field "y" Decode.int) + Decode.map2 (\a b -> ( round a, round b )) (Decode.field "x" Decode.float) (Decode.field "y" Decode.float) decodeEventData = |