Touch.screenY

Summary

Returns the Y coordinate of the touch point relative to the screen, not including any scroll offset.

Syntax

var y = touchItem.screenY;

Return value

y

The Y coordinate of the touch point relative to the screen, not including any scroll offset.

Example

The Touch.screenX example includes an example of this property's usage.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
screenY
22
≤18
52
Touch events support has been fixed and reenabled in Windows desktop platforms.
18-24
Web compatibility issues seen in bug 888304.
No
Yes
No
Yes
Yes
6
Yes
Yes
Yes

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY