dataarts / dat.guiVR

A flexible graphical user interface for changing variables within WebVR.
https://workshop.chromeexperiments.com/examples/guiVR/
Apache License 2.0
311 stars 50 forks source link

Clicking in space, then mousing over GUI "grabs" it and drags it #63

Closed customlogic closed 7 years ago

customlogic commented 7 years ago

If you click and hold (mouse or Vive controller) in space (not on the GUI), then you drag the cursor onto the gui, it "grabs" the gui and moves it around space. This feels broken.. the drag should only start dragging if your cursor is on the GUI when you pull the trigger/click.

customlogic commented 7 years ago

I think i fixed the problem with c80263d5a436c77eccad31e47b72c6e1fb6d1727, but have a look at the code and see if it makes sense

mflux commented 7 years ago

Where can I test it that also has the boilerplate to rotate the scene with the mouse?

customlogic commented 7 years ago

if you go to http://localhost:8000/tests/webvr-boilerplate/index.html in a browser that doesn't support webvr (make sure you don't have Juame's plugin enabled)

customlogic commented 7 years ago

The problem I'm describing in this issue seems to have gone away.. maybe as a by-product of the multiple window drag fix?