We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current version of VirtualMouseModule doesn't support groups and children.
VirtualMouseModule
Temporary workaround:
mouseModule.intersection = function(component) { const rc = this.raycaster; let singleObject = true; let object = component.native; let objects = []; if (object.children.length > 0) { singleObject = false; object.traverse(child => { objects.push(child); }) } return singleObject ? rc.intersectObject(object) : rc.intersectObjects(objects); } mouseModule.hovers = function(component) { return this.intersection(component).length > 0; }
TODO:
.intersection()
The text was updated successfully, but these errors were encountered:
Merge pull request #274 from WhitestormJS/#273
407d471
#273: VirtualMouseModule track groups
sasha240100
No branches or pull requests
The current version of
VirtualMouseModule
doesn't support groups and children.Temporary workaround:
TODO:
.intersection()
for childrenVersion:
Issue type:
Tested on:
Desktop
Android
IOS
The text was updated successfully, but these errors were encountered: