Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Copy link
Member

j-piasecki commented Dec 18, 2025

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.

j-piasecki requested review from akwasniewski and m-bert December 18, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

m-bert Awaiting requested review from m-bert

akwasniewski Awaiting requested review from akwasniewski

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant