Skip to content

Commit 00001ee

Browse files
committed
Window: pageXOffset and pageYOffset are Double
1 parent 01e2ed3 commit 00001ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ class Window extends EventTarget with WindowLocalStorage
19311931
*
19321932
* MDN
19331933
*/
1934-
def pageXOffset: Int = js.native
1934+
def pageXOffset: Double = js.native
19351935

19361936
/**
19371937
* The name of the window is used primarily for setting targets for hyperlinks and
@@ -2108,7 +2108,7 @@ class Window extends EventTarget with WindowLocalStorage
21082108
*
21092109
* MDN
21102110
*/
2111-
def pageYOffset: Int = js.native
2111+
def pageYOffset: Double = js.native
21122112

21132113
/**
21142114
* An event handler property for right-click events on the window.

0 commit comments

Comments
 (0)