don't try to grab polylines. set wantTrigger on various whiteboard parts

This commit is contained in:
Seth Alves 2015-11-05 13:26:23 -08:00
parent f83c0e7db7
commit c4194f2359
2 changed files with 12 additions and 4 deletions

View file

@ -455,6 +455,10 @@ function MyController(hand) {
continue;
}
if (propsForCandidate.type == 'PolyLine') {
continue;
}
if (propsForCandidate.type == 'Zone') {
continue;
}

View file

@ -75,8 +75,8 @@ var drawingSurface = Entities.addEntity({
color: {
currentColor: colors[0]
},
"grabbableKey": {
wantsTrigger:true
grabbableKey: {
wantsTrigger: true
}
})
@ -156,7 +156,10 @@ function setUp() {
color: {
currentColor: colors[0]
},
colorIndicator: colorIndicatorBox
colorIndicator: colorIndicatorBox,
grabbableKey: {
wantsTrigger: true
}
})
});
@ -189,7 +192,8 @@ function setUp() {
script: scriptURL,
userData: JSON.stringify({
whiteboard: drawingSurface,
colorIndicator: colorIndicatorBox
colorIndicator: colorIndicatorBox,
grabbableKey: {wantsTrigger: true}
})
});
colorBoxes.push(colorBox);