Fix script injection, small refactoring

This commit is contained in:
barsdeveloper
2021-12-21 22:03:56 +01:00
parent 8f0893447e
commit 93acfb5d33
9 changed files with 50 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
import Drag from "../input/Drag"
import DragMove from "../input/DragMove"
import GraphElement from "./GraphElement"
export default class SelectableDraggable extends GraphElement {
@@ -19,7 +19,7 @@ export default class SelectableDraggable extends GraphElement {
connectedCallback() {
super.connectedCallback()
this.dragObject = new Drag(this, this.blueprint, {
this.dragObject = new DragMove(this, this.blueprint, {
looseTarget: true
})
}