VirtualBananas / vr-museum

1 stars 5 forks source link

added timeout to cursor click to prevent unwanted click events from f… #37

Closed jcarapia closed 8 years ago

jcarapia commented 8 years ago

…iring off. Added a clickReady flag to the state, when the click event is fired off, the camera position changes and the state of clickReady is changed to false. A setTimeout is then called to return the state of clickReady to true after 2 seconds. The "blink" effect of the cursor is not resolved, but it will not cause unwanted click events from occurring within that 2 second window.