Skip to content
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

clarify what happens if touch-action is changed dynamically #42

Closed
patrickhlauke opened this issue Mar 13, 2016 · 2 comments
Closed

clarify what happens if touch-action is changed dynamically #42

patrickhlauke opened this issue Mar 13, 2016 · 2 comments

Comments

@patrickhlauke
Copy link
Member

It's probably implicit in the prose for "9.1 The touch-action CSS property", but: what should happen if, on pointerdown, the touch-action for the element is changed dynamically (for instance, from auto to none, based on the document's scroll position, for a naive pull-to-refresh implementation)? I assume that at that point, it's already too late and the user agent determined what to do (whether to handle the pointer/gesture or not) based on what touch-action was the moment when pointerdown was fired...if so, would it be useful to clarify this in a note?

@patrickhlauke
Copy link
Member Author

Guessing this sentence (as part of the note for the direction-specific pan values) is, essentially, what I'd like to see generalised as a separate note?

It's not possible to change the behavior of a pan in the middle of an operation.

So in essence, that it's not possible to change the behavior of any "gesture" (if that's the most appropriate word) after it has already started (either being handled by browser, or passed on to be handled by JS)

@RByers
Copy link
Contributor

RByers commented Mar 14, 2016

Yep, that's right. I remember bikeshedding about the wording way back. There's a few places this makes it in, but I agree it could be stronger:

When a user touches an element...
... for touches that begin on the element.

If you want to also add an explicit note about this, that's fine with me.

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

No branches or pull requests

2 participants