Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dist/aframe-super-keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,11 @@ AFRAME.registerComponent('super-keyboard', {
} else {
this.hand.ownRaycaster = false;
if (this.data.injectToRaycasterObjects) {
var objs = raycaster.data.objects.split(',');
var objs = raycaster.data.objects
if (typeof raycaster.data.objects === "string") { // can be an array if multiple items already declared
objs = objs.split(',');
objs = objs.filter(a => a !== ""); // prevent end result being ",.selector" by removing empty items in array
}
if (objs.indexOf('.keyboardRaycastable') === -1) {
objs.push('.keyboardRaycastable');
}
Expand Down
Loading