use correct function for peeked overlay

This commit is contained in:
Stephen Birarda 2016-07-13 15:47:52 -07:00
parent 9deb9744c6
commit 61975fe33a

View file

@ -185,7 +185,7 @@ function makeTriggerHandler(hand) {
if (pickRay) { if (pickRay) {
var overlayIntersection = Overlays.findRayIntersection(pickRay); var overlayIntersection = Overlays.findRayIntersection(pickRay);
if (overlayIntersection.intersects) { if (overlayIntersection.intersects) {
handleClickedOverlay(overlayIntersection); handleSelectedOverlay(overlayIntersection);
} }
} }
} else if (triggered && (value < TRIGGER_OFF_VALUE)) { } else if (triggered && (value < TRIGGER_OFF_VALUE)) {