Skip to content
Snippets Groups Projects
Commit 7d235491 authored by Kevin Lee's avatar Kevin Lee
Browse files

fix issue where spawning pen in hud was frame behind causing issues.

parent 73e2cc68
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ AFRAME.registerComponent("in-world-hud", {
this.mic.addEventListener("click", this.onMicClick);
this.freeze.addEventListener("click", this.onFreezeClick);
this.pen.addEventListener("click", this.onPenClick);
this.pen.addEventListener("mousedown", this.onPenClick);
},
pause() {
......@@ -59,6 +59,6 @@ AFRAME.registerComponent("in-world-hud", {
this.mic.removeEventListener("click", this.onMicClick);
this.freeze.removeEventListener("click", this.onFreezeClick);
this.pen.removeEventListener("click", this.onPenClick);
this.pen.removeEventListener("mousedown", this.onPenClick);
}
});
......@@ -68,6 +68,8 @@ export default class ActionEventHandler {
let scrollX = e.detail.axis[0] * SCROLL_MODIFIER;
scrollX = Math.abs(scrollX) > SCROLL_THRESHOLD ? scrollX : 0;
this.isCursorInteracting = this.cursor.isInteracting();
if (
Math.abs(scrollY) > 0 &&
(this.lastVerticalScrollTime === 0 || this.lastVerticalScrollTime + VERTICAL_SCROLL_TIMEOUT < Date.now())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment