borismus / ray-input

http://smus.com/ray-input-webvr-interaction-patterns
Apache License 2.0
139 stars 20 forks source link

Overlapping mouse/touch events #11

Open tomorrowevening opened 7 years ago

tomorrowevening commented 7 years ago

Please add 'enable' and 'disable' functionality to RayController's mouse/touch event binding, overlapping DOM elements won't receive these events.

borismus commented 7 years ago

Could you elaborate?

tomorrowevening commented 7 years ago

If a DOM element covers the RayController's DOM element, the RayController's input still gets updated. Could we add 'enable' and 'disable' methods to add/remove those event bindings?