Skip to content

Commit

Permalink
Merge pull request #19 from LinkunGao/pwa
Browse files Browse the repository at this point in the history
test drag move on iPad
  • Loading branch information
LinkunGao authored Sep 30, 2024
2 parents 09689e1 + f0e594b commit a888a4e
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 a888a4e

Please sign in to comment.