ubuntu-webapps-bugs team mailing list archive
-
ubuntu-webapps-bugs team
-
Mailing list archive
-
Message #03342
[Bug 1487385] [NEW] document.elementFromPoint() takes absolute coordinates on touch devices
Public bug reported:
I’m testing a user script that uses document.elementFromPoint() to retrieve the node under a given touch point.
According to the specification (https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint), the coordinates passed to the method are relative to the current viewport. I verified this works well on my desktop. However when testing on a touch device (arale), for a given point the method always returns the same node, regardless of the current scroll offsets, so it appears to be interpreting the coordinates as absolute in the page.
** Affects: oxide
Importance: Undecided
Status: New
** Summary changed:
- document.elementFromPoint() takes absolute coordinates on devices
+ document.elementFromPoint() takes absolute coordinates on touch devices
--
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1487385
Title:
document.elementFromPoint() takes absolute coordinates on touch
devices
Status in Oxide:
New
Bug description:
I’m testing a user script that uses document.elementFromPoint() to retrieve the node under a given touch point.
According to the specification (https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint), the coordinates passed to the method are relative to the current viewport. I verified this works well on my desktop. However when testing on a touch device (arale), for a given point the method always returns the same node, regardless of the current scroll offsets, so it appears to be interpreting the coordinates as absolute in the page.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1487385/+subscriptions