Skip to content

Commit

Permalink
Merge pull request #6 from ajnsit/ajnsit-bugfix-elementPageXY
Browse files Browse the repository at this point in the history
Fixed compile error with elementPageXY
  • Loading branch information
luite committed Jul 18, 2015
2 parents af08842 + c883b20 commit 217b7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webkit-sodium/src/Engine.hs
Expand Up @@ -94,7 +94,7 @@ elementPageXY doc elt = do
ox <- elementGetOffsetLeft elt
oy <- elementGetOffsetTop elt
Just parent <- elementGetOffsetParent elt
traverse body parent (x + ox, y + oy)
traverse body parent (x + round ox, y + round oy)

-- The game logic expects alternating down-up-down-up, but the browser can produce
-- bad sequences like down-up-down-down-up. So we sanitize the input.
Expand Down

0 comments on commit 217b7fd

Please sign in to comment.