fix(drag): set dragging to false after drag
This commit is contained in:
@@ -126,6 +126,7 @@ function useDrag(params: UseDragParams) {
|
||||
}
|
||||
|
||||
event.on('end', (event) => {
|
||||
dragging.value = false
|
||||
if (onStop && dragItems) {
|
||||
const [currentNode, nodes] = getEventHandlerParams({
|
||||
id,
|
||||
@@ -136,9 +137,6 @@ function useDrag(params: UseDragParams) {
|
||||
}
|
||||
})
|
||||
})
|
||||
.on('end', (_: UseDragEvent) => {
|
||||
// if (node) lastPos = node.position
|
||||
})
|
||||
.filter((event: D3DragEvent<HTMLDivElement, null, SubjectPosition>['sourceEvent']) => {
|
||||
const filter =
|
||||
!event.ctrlKey && !event.button && (!noDragClassName || !event.target.className.includes(noDragClassName))
|
||||
|
||||
Reference in New Issue
Block a user