Skip to content

[General] Move the end flag to the event passed to onDeactivate and onFinalize#3887

Open
j-piasecki wants to merge 1 commit intonextfrom
@jpiasecki/move-flag-to-event
Open

[General] Move the end flag to the event passed to onDeactivate and onFinalize#3887
j-piasecki wants to merge 1 commit intonextfrom
@jpiasecki/move-flag-to-event

Conversation

@j-piasecki
Copy link
Copy Markdown
Member

Description

Up to this point, the API mirrored V2, where success was being passed as an additional parameter to the end callbacks.

This PR changes it, so the flag is being passed as part of the event to the callbacks. I also think that the approach to working with gestures is to assume that they will succeed, so I changed the flag to canceled.

This also seems to be the easiest one to explain in the docs - "the gesture was canceled due to failure to meet activation criteria, the activation of another gesture, by the OS".

Test plan

Verify that calceled exists in events passed to onDeactivate and onFinalize.

Copy link
Copy Markdown
Contributor

@m-bert m-bert left a comment

Choose a reason for hiding this comment

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

Been a while, sorry for that!

I like the idea, though I think we stray from the "all callbacks use the same event". But on the other hand, we already did that so it should be fine.

Anyway, if you'd still like this change, can you merge main? 😅

@m-bert m-bert removed the request for review from akwasniewski April 9, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants