Contact emails
liviu...@chromium.org,mus...@chromium.org
Explainer
Spec
Tag review: https://github.com/w3ctag/design-reviews/issues/537.
Summary
Adding another way of describing a digital pen’s 3D orientation to Pointer Events. Altitude is the angle between the pen and the plane (X,Y) (the surface), azimuth is the angle between the pen’s projection on plane (X,Y) and the X axis.
Azimuth and altitude angles will be populated by the user agent for both trusted and untrusted events. Since there will be 2 ways of describing a pen's orientation in 3D in pointer events (either tiltX, tiltY angles, or azimuth, altitude angles), if one set of angles is provided when constructing an untrusted event, the other set will automatically be computed by the user agent.
Link to “Intent to Prototype” blink-dev discussion
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Demo link
https://patrickhlauke.github.io/touch/tracker/multi-touch-tracker-pointer-hud.html
https://patrickhlauke.github.io/touch/pen-tracker/index.html?azimuth
Debuggability
The azimuthAngle and altitudeAngle pointer event attributes are visible in Developer Tools like any other attribute.
Risks
Interoperability and Compatibility
Adding new attributes azimuthAngle and altitudeAngle to PointerEvent will not break existing code, as tilt is currently described using tiltX, tiltY angle pair.
Signals from other implementations (Gecko, WebKit):
Gecko: Pointer Events specification is marked as In Development. Mozilla actively contributed to the specification discussion related to Azimuth/Altitude: PEWG minutes
WebKit: the request originated from an Apple developer saying they are working on the implementation
Web / Framework developers: N/A
Ergonomics
Are there any other platform APIs this feature will frequently be used in tandem with?
No.
Activation
azimuthAngle and altitudeAngle can be used as normal properties of PointerEvent.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
Yes. Link here. Code landed in 86.0.4210.0.
Entry on the feature dashboard
Altitude/Azimuth for PointerEvents v3
Web / Framework developers: N/A
Ergonomics
Are there any other platform APIs this feature will frequently be used in tandem with?
No.
Activation
azimuthAngle and altitudeAngle can be used as normal properties of PointerEvent.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
Yes. Link here. Code landed in 86.0.4210.0.
Entry on the feature dashboard
Altitude/Azimuth for PointerEvents v3
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHaAqY%2BGwMgYMmCpVZjpUqYE%3DxmfB%2BUhaq8A%3DW3PD%3DQs%2BrSL2g%40mail.gmail.com.
Interoperability and Compatibility
Adding new attributes azimuthAngle and altitudeAngle to PointerEvent will not break existing code, as tilt is currently described using tiltX, tiltY angle pair.
Signals from other implementations (Gecko, WebKit):
Gecko: Request for position
WebKit: Request for position
Web / Framework developers: N/A
Interoperability and Compatibility
Adding new attributes azimuthAngle and altitudeAngle to PointerEvent will not break existing code, as tilt is currently described using tiltX, tiltY angle pair.
Signals from other implementations (Gecko, WebKit):
Gecko: Request for position
WebKit: Positive Request for position
Web / Framework developers: N/A
LGTM1
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHaAqY%2B6OxUcfGaZ7_CXjiZHPkaD0V%2B3bm5Pmp5WqTw%2BY_NgYQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEj6Hvn%2B0YBt5waGiVcWO8GcBKC6znoXo0R1dKMHq_GDjA%40mail.gmail.com.