Skip to content

Commit 6da0fcb

Browse files
author
Colin Wahl
authored
scrollX and scrollY should have type Window -> Effect Number (#17)
1 parent aba4793 commit 6da0fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Web/HTML/Window.purs

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ foreign import scroll :: Int -> Int -> Window -> Effect Unit
110110

111111
foreign import scrollBy :: Int -> Int -> Window -> Effect Unit
112112

113-
foreign import scrollX :: Window -> Effect Int
113+
foreign import scrollX :: Window -> Effect Number
114114

115-
foreign import scrollY :: Window -> Effect Int
115+
foreign import scrollY :: Window -> Effect Number
116116

117117
foreign import localStorage :: Window -> Effect Storage
118118

0 commit comments

Comments
 (0)