Organizing input actions in device folders

This commit is contained in:
barsdeveloper
2022-01-05 22:26:56 +01:00
parent 7704850cf6
commit a6ff4161e8
19 changed files with 41 additions and 41 deletions

View File

@@ -0,0 +1,16 @@
import MouseClickDrag from "./MouseClickDrag"
export default class MouseScrollGraph extends MouseClickDrag {
startDrag() {
this.blueprint.template.applyStartDragScrolling(this.blueprint)
}
dragTo(location, movement) {
this.blueprint.scrollDelta([-movement[0], -movement[1]])
}
endDrag() {
this.blueprint.template.applyEndDragScrolling(this.blueprint)
}
}