Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

How to read cursor position #801

Open
altthomas4 opened this issue May 29, 2020 · 0 comments
Open

How to read cursor position #801

altthomas4 opened this issue May 29, 2020 · 0 comments

Comments

@altthomas4
Copy link

Description

Hi,
I'd like to know if it is possible to read the cursor position when a click event occours, in order to create a view attached to a specific coordinate.
I've already read the documentation:
https://facebook.github.io/react-360/docs/input.html
I tried with:

  • global EventListener: it makes Firefox crashing
  • onInput property of View: I can't find event coordinates

Additional Information

  • 'react-360' package version: 1.1.0
  • 'react-360-web' package version: 1.1.0
  • Operating System: Windows x64
  • Browser: Firefox 76.0.1
  • VR Device: Oculus Go

Thanks in advance,
Thomas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant