diff --git a/frontend/components/model/Model.vue b/frontend/components/model/Model.vue index 1e765bc..f1a995a 100644 --- a/frontend/components/model/Model.vue +++ b/frontend/components/model/Model.vue @@ -209,13 +209,13 @@ export default { if(this.mouseActions === null){ this.mouseActions = this.raycaster(this.scene, this.container, data.nrrdSliceZ, data.nrrdMesh, data.nrrdMaxIndex); } - this.container.addEventListener("mousemove", this.mouseActions.mouseMove); + this.container.addEventListener("pointermove", this.mouseActions.mouseMove); }, removeContainerListener() { if(this.mouseActions !== null){ - this.container.removeEventListener("mousemove", this.mouseActions.mouseMove); - this.container.removeEventListener("mousedown", this.mouseActions.mouseDown); - this.container.removeEventListener("mouseup", this.mouseActions.mouseUp); + this.container.removeEventListener("pointermove", this.mouseActions.mouseMove); + this.container.removeEventListener("pointerdown", this.mouseActions.mouseDown); + this.container.removeEventListener("pointerup", this.mouseActions.mouseUp); } }, onResetAllModelsView() { diff --git a/frontend/components/model/PanelControls.vue b/frontend/components/model/PanelControls.vue index 4438fc2..7ccf62c 100644 --- a/frontend/components/model/PanelControls.vue +++ b/frontend/components/model/PanelControls.vue @@ -171,13 +171,13 @@ export default { if(this.mouseActions === null){ this.mouseActions = this.raycaster(this.scene, this.container, data.nrrdSliceZ, data.nrrdMesh, data.nrrdMaxIndex); } - this.container.addEventListener("mousemove", this.mouseActions.mouseMove); + this.container.addEventListener("pointermove", this.mouseActions.mouseMove); }, removeContainerListener() { if(this.mouseActions !== null){ - this.container.removeEventListener("mousemove", this.mouseActions.mouseMove); - this.container.removeEventListener("mousedown", this.mouseActions.mouseDown); - this.container.removeEventListener("mouseup", this.mouseActions.mouseUp); + this.container.removeEventListener("pointermove", this.mouseActions.mouseMove); + this.container.removeEventListener("pointerdown", this.mouseActions.mouseDown); + this.container.removeEventListener("pointerup", this.mouseActions.mouseUp); } }, }, diff --git a/frontend/nuxt.config.js b/frontend/nuxt.config.js index 78e1ff3..c34c892 100644 --- a/frontend/nuxt.config.js +++ b/frontend/nuxt.config.js @@ -75,7 +75,7 @@ export default { }, ], server: { - host: "localhost", // default: localhost + host: "0.0.0.0", // default: localhost port: 3055, // default: 3000 },