Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

On "pointerup" event, "pressure" must be zero #180

Closed
compulim opened this issue Apr 13, 2015 · 2 comments
Closed

On "pointerup" event, "pressure" must be zero #180

compulim opened this issue Apr 13, 2015 · 2 comments
Milestone

Comments

@compulim
Copy link

Tested on Chrome 42 on Windows with mouse, and also Safari on iOS 8.2 on iPad. The "pointerup" event emit a PointerEvent of pressure 0.5, instead of 0.

When testing the same code under IE11 with mouse (with or without PEP), the "pointerup" event give pressure of 0.

@scottgonzalez scottgonzalez changed the title On "pointerup" event, "pressure" must not be non-zero On "pointerup" event, "pressure" must be zero Jun 11, 2015
@appsforartists
Copy link
Contributor

appsforartists commented Sep 20, 2016

Here are the relevant bugs against Chrome and against the spec:

As you can see from the following chart, PEP currently does the wrong thing on iOS but the right thing on desktop. (Here's the test.)

Platform Browser Pointer pointerup pressure is 0 pointerup pressure is whatever the last pointermove recorded
Android Chrome touch ☑️
iOS Safari via PEP touch ☑️
Mac Chrome trackpad ☑️
Mac Chrome Wacom stylus ☑️
Mac Chrome Wacom touch ☑️ (always 1, spec says it should be .5)
Mac Firefox trackpad ☑️
Mac Firefox Wacom stylus ☑️
Mac Firefox Wacom touch ☑️
Mac Safari via PEP trackpad ☑️
Mac Safari via PEP Wacom stylus ☑️
Mac Safari via PEP Wacom touch ☑️
ChromeOS Chrome touch ☑️
ChromeOS Chrome trackpad ☑️
Windows Chrome or Edge touch ☑️
Windows Chrome or Edge trackpad ☑️
Windows Chrome or Edge stylus ☑️
Windows Firefox touch ☑️
Windows Firefox trackpad ☑️
Windows Firefox stylus ☑️

@appsforartists
Copy link
Contributor

Chrome is fixing their behavior. When #313 lands, this will be consistent in every case I've seen (except for touch on Windows)! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants