mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-19 04:55:57 +08:00
Organizing input actions in device folders
This commit is contained in:
16
js/input/mouse/MouseScrollGraph.js
Executable file
16
js/input/mouse/MouseScrollGraph.js
Executable 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user