Fix node selection

This commit is contained in:
barsdeveloper
2022-12-12 21:57:50 +01:00
parent 16a00b409c
commit 88a1becb58
4 changed files with 14 additions and 14 deletions

View File

@@ -82,10 +82,11 @@ export default class NodeElement extends ISelectableDraggableElement {
boundComments = []
#commentDragged = false
#commentDragHandler = e => {
// If selected, it will already drag, also must check if under nested comments, it must drag just once
if (!this.selected && !this.#commentDragged) {
this.addLocation(e.detail.value) // if selected it will already move
this.#commentDragged = true
this.addNextUpdatedCallbacks(() => this.#commentDragged = false)
this.addLocation(e.detail.value)
}
}