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)

defect

Tracking

()

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.
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
(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.
Blocks: 1186575
Whiteboard: [webvr] [horizon] → [webvr] [horizon][vrm2]
Whiteboard: [webvr] [horizon][vrm2] → [webvr] [horizon][vrm2][css-vr]

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: kearwood → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.