Skip to content

Commit 123aea4

Browse files
committed
Merge pull request #57 from andrey-fomin/fractional-xy-in-touch
Coordinates in object Touch can be fractional
2 parents 6d773bb + fedb44f commit 123aea4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,31 +2253,31 @@ class Touch extends js.Object {
22532253
*
22542254
* MDN
22552255
*/
2256-
def screenX: Int = ???
2256+
def screenX: Double = ???
22572257

22582258
/**
22592259
* The Y coordinate of the touch point relative to the top edge of the screen.
22602260
* Read only.
22612261
*
22622262
* MDN
22632263
*/
2264-
def screenY: Int = ???
2264+
def screenY: Double = ???
22652265

22662266
/**
22672267
* The X coordinate of the touch point relative to the left edge of the browser viewport,
22682268
* not including any scroll offset. Read only.
22692269
*
22702270
* MDN
22712271
*/
2272-
def clientX: Int = ???
2272+
def clientX: Double = ???
22732273

22742274
/**
22752275
* The Y coordinate of the touch point relative to the top edge of the browser viewport,
22762276
* not including any scroll offset. Read only.
22772277
*
22782278
* MDN
22792279
*/
2280-
def clientY: Int = ???
2280+
def clientY: Double = ???
22812281

22822282
/**
22832283
* The X coordinate of the touch point relative to the left edge of the document. Unlike clientX,
@@ -2286,7 +2286,7 @@ class Touch extends js.Object {
22862286
* MDN
22872287
* Read only.
22882288
*/
2289-
def pageX: Int = ???
2289+
def pageX: Double = ???
22902290

22912291
/**
22922292
* The Y coordinate of the touch point relative to the top of the document. Unlike clientY, this value
@@ -2295,7 +2295,7 @@ class Touch extends js.Object {
22952295
*
22962296
* MDN
22972297
*/
2298-
def pageY: Int = ???
2298+
def pageY: Double = ???
22992299

23002300
/**
23012301
* The X radius of the ellipse that most closely circumscribes the area of contact with the screen.

0 commit comments

Comments
 (0)