mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-23 23:34:43 +08:00
Organizing input actions in device folders
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import GraphElement from "./GraphElement"
|
||||
import PinTemplate from "../template/PinTemplate"
|
||||
import DragLink from "../input/DragLink"
|
||||
import MouseCreateLink from "../input/mouse/MouseCreateLink"
|
||||
import GraphLink from "./GraphLink"
|
||||
|
||||
export default class GraphPin extends GraphElement {
|
||||
@@ -15,7 +15,7 @@ export default class GraphPin extends GraphElement {
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new DragLink(this.clickableElement, this.blueprint, {
|
||||
new MouseCreateLink(this.clickableElement, this.blueprint, {
|
||||
moveEverywhere: true
|
||||
}),
|
||||
]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import DragMove from "../input/DragMove"
|
||||
import MouseMoveNodes from "../input/mouse/MouseMoveNodes"
|
||||
import GraphElement from "./GraphElement"
|
||||
|
||||
export default class SelectableDraggable extends GraphElement {
|
||||
@@ -19,7 +19,7 @@ export default class SelectableDraggable extends GraphElement {
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new DragMove(this, this.blueprint, {
|
||||
new MouseMoveNodes(this, this.blueprint, {
|
||||
looseTarget: true
|
||||
}),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user