Open
Bug 1171756
Opened 9 years ago
Updated 2 years ago
Hit testing of elements must only hit elements in front of the camera
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
NEW
People
(Reporter: kip, Unassigned)
References
Details
(Whiteboard: [webvr] [horizon][vrm2][css-vr])
Document.GetElementFromPoint will return elements that have been transformed with CSS to be behind the camera, resulting in hit tests missing elements in front of the camera.
Reporter | ||
Updated•9 years ago
|
Summary: Hit testing of elements needs to only hit elements in front of the camera → Hit testing of elements must only hit elements in front of the camera
Reporter | ||
Comment 1•9 years ago
|
||
(In reply to :kip (Kearwood Gilbert) from comment #0)
> Document.GetElementFromPoint will return elements that have been transformed
> with CSS to be behind the camera, resulting in hit tests missing elements in
> front of the camera.
Correction - The API that is working incorrectly:
document.elementFromPoint(x,y)
Here is an example test case for the problem:
http://mozvr.github.io/cursor-target-test
Not getting correct elements from the Y offset:
https://github.com/MozVR/cursor-target-test/blob/master/index.html#L138
Ideally document.elementFromPoint(0, 0) returns the correct element at viewport center.
Updated•9 years ago
|
Whiteboard: [webvr] [horizon] → [webvr] [horizon][vrm2]
Whiteboard: [webvr] [horizon][vrm2] → [webvr] [horizon][vrm2][css-vr]
Comment 4•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: kearwood → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•