Skip to content

Commit

Permalink
test drag move on iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkunGao committed Sep 30, 2024
1 parent b7af12c commit f0e594b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions frontend/components/model/Model.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions frontend/components/model/PanelControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default {
},
],
server: {
host: "localhost", // default: localhost
host: "0.0.0.0", // default: localhost
port: 3055, // default: 3000
},

Expand Down

0 comments on commit f0e594b

Please sign in to comment.