Allow injecting input directly into r.id.content for DOMUtils.
This works around an issue where DOMUtils injects its input through the rootView (view.getRootView()), which causes the input to be swallowed by the GvrLayout in VR (this is because in VR, screen touches are used for headset alignment rather than user input). DOMUtils clicks will optionally get injected directly into r.id.content rather than the root of the view hierarchy. We need to inject into r.id.content, rather that cvc.getContainerView() because the CompositorViewHolder needs to be able to intercept the events to correctly set the EventForwarder offsets. Gross. Bug: 804808 Change-Id: I6b246262d1e7b64437382b67db0a0d10518ee839 Reviewed-on: https://chromium-review.googlesource.com/884010 Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Reviewed-by:David Trainor <dtrainor@chromium.org> Cr-Commit-Position: refs/heads/master@{#532940}
Showing
Please register or sign in to comment