use float for clicked value in mod.js

This commit is contained in:
Stephen Birarda 2016-07-28 10:25:36 -07:00
parent f02f619597
commit fa9199c419

View file

@ -192,7 +192,7 @@ function controllerComputePickRay(hand) {
function makeClickHandler(hand) {
return function(clicked) {
if (clicked && isShowingOverlays) {
if (clicked == 1.0 && isShowingOverlays) {
var pickRay = controllerComputePickRay(hand);
if (pickRay) {
var overlayIntersection = Overlays.findRayIntersection(pickRay);