mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:17:41 +08:00
Fix script injection, small refactoring
This commit is contained in:
@@ -7,7 +7,8 @@ export default class DragLink extends MouseClickDrag {
|
||||
}
|
||||
|
||||
startDrag() {
|
||||
//this.selectorElement.startSelecting(this.clickedPosition)
|
||||
let a = 12
|
||||
console.log(a)
|
||||
}
|
||||
|
||||
dragTo(location, movement) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import MouseClickDrag from "./MouseClickDrag"
|
||||
|
||||
export default class Drag extends MouseClickDrag {
|
||||
export default class DragMove extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options)
|
||||
@@ -23,6 +23,7 @@ export default class MouseClickDrag extends Pointing {
|
||||
case self.clickButton:
|
||||
// Either doesn't matter or consider the click only when clicking on the parent, not descandants
|
||||
if (self.looseTarget || e.target == e.currentTarget) {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
self.started = false
|
||||
// Attach the listeners
|
||||
|
||||
Reference in New Issue
Block a user