This repository was archived by the owner on Feb 11, 2021. It is now read-only.
PointerEvent: set pressure to 0 unless pointer is down #313
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Nonsensically,
pointerup
events currently have a non-zero pressure on iOS. As outlined in w3c/pointerevents#146, the spec should be updated to make it clear that if a pointer is up, pressure must be 0. (This is already the case for pointers that don't report granular pressure - this proposal only makes that rule consistent.) This PR also makes PEP's behavior consistent with Firefox on all platforms.https://github.com/w3c/web-platform-tests also needs to be updated, both to assert that pressure is 0 in
pointerup
and to test for custom pressure in apointermove
; the current test checks inpointerover
.