Skip to content

Commit

Permalink
explain resize better in haddocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Greif committed Jul 9, 2018
1 parent ee97b5d commit 83384f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Graphics/UI/Threepenny/Events.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ focus = silence . domEvent "focus"
blur :: Element -> Event ()
blur = silence . domEvent "blur"

-- | Element reports window resize.
-- | Element reports its window's resize.
-- Note that there should only be at most one
-- 'resize' event registered.
resize :: Element -> Event (Int,Int)
resize = fmap readCoordinates . domEvent "resize"


type KeyCode = Int

-- | Key pressed while element has focus.
Expand Down

0 comments on commit 83384f8

Please sign in to comment.