Skip to content

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Oct 15, 2016

Fixes #6084

@abarth
Copy link
Contributor Author

abarth commented Oct 15, 2016

@Hixie

);
if (config.onDragStarted != null)
config.onDragStarted();
return avatar;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you build it before calling the callback?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paranoia about being re-entered during the callback.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah ok

@Hixie
Copy link
Contributor

Hixie commented Oct 15, 2016

LGTM. I think we'll eventually want to expose some version of the avatar in this callback, but let's wait for use cases.

@abarth abarth merged commit ea3c3f5 into flutter:master Oct 15, 2016
@abarth abarth deleted the on_drag_started branch October 15, 2016 20:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to know when dragging starts on a Draggable or LongPressDraggable (to trigger an animation).

2 participants