Closed chrislatorres closed 5 years ago
Do we actually want to do that though? If we send the events while dragging we will be both dragging exokit and highlighting the page at the same time...
The drag is only at the very top/edge of console, where text could not be highlighted.
But this code applies to all drags, no? So doing an orbit will highlight things on the page depending on how we move around.
This code only applies when the target is the UI: https://github.com/exokitxr/studio/blob/8be765b5611e79ac98a7fdc0c1cbad97e5ba840b/index.html#L1219
ui
seems to only mean "not locked into XR mode" -- I might be mistaken but it seems this this dragging would still happen on orbiting.
note from discord:
we shouldn't be sending extra HTML events while we do exokit operations I can totally see the HTML having more complex handlers later and then dragging exokit will lag things despite having nothing to do with the HTML
This PR fixes sending mouse movements only when orbit controls present.
Closes #26