-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(drag-drop): unable to stop dragging after quick double click #14506
Conversation
@@ -495,7 +495,7 @@ export class DragRef<T = any> { | |||
|
|||
/** Handler that is invoked when the user lifts their pointer up, after initiating a drag. */ | |||
private _pointerUp = (event: MouseEvent | TouchEvent) => { | |||
if (!this.isDragging()) { | |||
if (!this._dragDropRegistry.isDragging(this)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment that explains why this is not using this.isDragging()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
eb36d1e
to
209abe7
Compare
Seems to be something that regressed while we were doing the recent refactor. When starting a drag after a quick double-click sequence, the user can't stop dragging.
209abe7
to
789f17b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ular#14506) Seems to be something that regressed while we were doing the recent refactor. When starting a drag after a quick double-click sequence, the user can't stop dragging.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Seems to be something that regressed while we were doing the recent refactor. When starting a drag after a quick double-click sequence, the user can't stop dragging.