-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add wasConsumed
#2
Comments
What would be the use case for this? The isActive can't definitively tell you that it actually allows the gesture to occur because of out of process iframes. Basically the two iframes can race to consume the gesture. |
Exactly, but the combination it and It is not about racing, though, but about unrelated code parts that happen to do something powerful. |
It is unclear what the lifecyle of isActive and wasConsumed would be. Can you draw a state diagram? And I think this information would be available to an event listener if it used say a capturing event listener in the beginning read the value, then did stuff and then re-read the isActive flag. I'm just trying to understand what value this adds if you still need to deal with the failure case anyways. |
Here are my thoughts from User Activation v2 perspective:
|
Sometimes there is a user activation, but it was consumed by a powerful API call already (so the next call could be blocked) -
The text was updated successfully, but these errors were encountered: