-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report]: dynamic-group extension separate with its children when quick drag and release #1911
Comments
You need to quick drag and release to trigger this bug. |
Watch my video between 0:27 ~ 0:29, I click LMB (Left Mouse Button) start to drag and release LMB for 4 times. |
Besides, If you use custom htmlnode this bug will become more obvious. |
I also found this problem, it should be the same problem #1949 DynamicGroup's parent movement is handled internally by Promise.resolve().then(() => {
this.onDragging({
deltaX,
deltaY,
event: e,
})
this.eventCenter?.emit(EventType[`${this.eventType}_MOUSEMOVE`], {
deltaX,
deltaY,
e,
data: this.data || elementData,
})
this.eventCenter?.emit(EventType[`${this.eventType}_DRAG`], {
e,
data: this.data || elementData,
})
})
Of course, autoExpand is another problem, the dx and dy changed by onDragging() are larger
The unification of the dx and dy data of parent.moveNodes() and the dx and dy data emitted by the mousemove event should be the key point to approach this problem. |
maybe can fix in #1963 |
What happened?
small.mp4
Core Version
2.0.6
Extension Version
2.0.10
Engine Version
No response
What browsers are you seeing the problem on?
Firefox, Chrome, Microsoft Edge
The text was updated successfully, but these errors were encountered: