jesstelford / aframe-click-drag-component

Aframe Click & Drag Component
https://jesstelford.github.io/aframe-click-drag-component/
MIT License
103 stars 49 forks source link

Allow click-drag to be disabled/enabled #20

Closed patrickocoffeyo closed 2 years ago

patrickocoffeyo commented 7 years ago

Hey there! Thanks for this awesome component, it's incredibly useful!

I need to apply click-drag behaviors conditionally, and so I forked and added a small change that allows click-drag to be disabled by setting the click-drag attribute to enabled: false. There are other ways of accomplishing this, so I'm open to other options, but this was the cleanest in my case, so I thought I'd PR it.

Steps to test

jesstelford commented 2 years ago

Thank you for this improvement! (Better late than never 😅)