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

Investigate if tangentialPressure is correctly implemented/working in browsers/documented appropriately in spec #467

Closed
patrickhlauke opened this issue Mar 2, 2023 · 12 comments · Fixed by #468
Labels

Comments

@patrickhlauke
Copy link
Member

patrickhlauke commented Mar 2, 2023

Related to the initial email I sent to the list about the Wacom airbrush pen https://lists.w3.org/Archives/Public/public-pointer-events/2023JanMar/0041.html which now led me down a strange rabbit hole.

Wondering if we could spend some time:

Related links/issues

(and for reference, the Wacom Airbrush Pen https://estore.wacom.com/en-US/wacom-airbrush-pen-kp400e2.html - note the "finger wheel" feature)

@patrickhlauke
Copy link
Member Author

Note that for testing, you should be able to use https://patrickhlauke.github.io/touch/pen-tracker/ (i've hooked it up to show tangentialPressure as a value once you start interacting with the demo using a tablet/pen)

Screenshot of the pen tracker and the Wacom diagnostic utility, when using a Wacom airbrush pen - tangentialPressure is shown as 0, but in the diagnostic tool the 'Wheel' property shows an actual value

@patrickhlauke patrickhlauke changed the title Investigate if tangentialPressure is correctly implemented/working in browsers/documented appropriately in spec Investigate if tangentialPressure is correctly implemented/working in browsers/documented appropriately in spec Mar 2, 2023
@patrickhlauke
Copy link
Member Author

@mustaqahmed @smaug---- let me know if I should explicitly file bugs anywhere about this (presumably in https://bugs.chromium.org/p/chromium/issues/list and https://bugzilla.mozilla.org/ respectively), or if you're happy (?) to check internally first

@patrickhlauke
Copy link
Member Author

also, some more info on how the finger wheel is actually used: in essence, it's just an additional sensor on the airbrush, and does not replace pressure. users generally map/remap what it does in applications - by default, I believe that apps like Photoshop have the wheel mapped to pressure (changing opacity, so essentially replacing the purpose of tip pressure, which is then ignored/not mapped to opacity anymore), but it's up to users - some remap it so that tip pressure still affects the usual opacity of a stroke, and the wheel is used to set brush size for instance.

@smaug----
Copy link
Contributor

https://bugzilla.mozilla.org/show_bug.cgi?id=1372097 says it was implemented on Firefox/Mac, and I don't see any code for it on non-Mac platforms.

@patrickhlauke
Copy link
Member Author

patrickhlauke commented Mar 15, 2023

@smaug---- @mustaqahmed following on from our quick discussion at today's meeting, I can confirm that tangentialPressure is actually handled correctly on Chrome/macOS and Firefox/macOS - so the problem may be in the integration for Windows (not able to test for Linux at this point)

Screenshot 2023-03-15 at 22 49 01

Screenshot 2023-03-15 at 22 45 35

Safari/macOS does not currently recognise the Wacom stylus as an actual pen device, and just reports it as mouse. I guess it's a long shot to ask if @graouts is in a position to share if there's an intention of implementing this in webkit or not...

@patrickhlauke
Copy link
Member Author

(incidentally, @smaug---- ... found a bug with Firefox/macOS and its tiltY while testing this https://bugzilla.mozilla.org/show_bug.cgi?id=1822714)

@mustaqahmed
Copy link
Member

On Windows, did you mean it's broken on both Chrome and Firefox?

Too many variations here, it would be nice to have a table of impl status across [major browsers] x [major OSes].

@patrickhlauke
Copy link
Member Author

patrickhlauke commented Mar 16, 2023

@mustaqahmed on Windows, tangentialPressure shows just 0 in both Chrome and Firefox. On macOS, tangentialPressure works correctly in Chrome and Firefox. all with latest stable release OS and browser version.

macOS/Safari doesn't even know what a pen device. it recognises the Wacom stylus just as a mouse, and tiltX, tiltY, tangentialPressure, pressure are all 0

@patrickhlauke
Copy link
Member Author

@mustaqahmed remind me...is there a chrome bug about this tangentialPressure on Windows already, or do you want me to file one?

@smaug---- similar question...is there already a firefox bug for this on Windows, or do you want me to file one too?

@mustaqahmed
Copy link
Member

I couldn't find any existing Chromium bug, looks like we need to file one at crbug.com/new.

@patrickhlauke
Copy link
Member Author

I'll get on that later tonight, @mustaqahmed

@patrickhlauke
Copy link
Member Author

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

Successfully merging a pull request may close this issue.

3 participants