Closed Bug 1823510 Opened 2 years ago Closed 3 months ago

Pointer Events: implement altitudeAngle and azimuthAngle

Categories

(Core :: DOM: UI Events & Focus Handling, enhancement)

Firefox 113
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1656377

People

(Reporter: redux, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce:

  1. Go to https://patrickhlauke.github.io/touch/pen-tracker/ on a device with a stylus (either something like a Surface, or using a Wacom tablet with an advanced stylus that also registers the stylus tilt)
  2. Move the stylus around the digitzers

Actual results:

Notice that altitudeAngle and azimuthAngle are reported as undefined.

Expected results:

While level 3 of the specification is still in draft, I'd love to see an implementation of these two new properties.

https://w3c.github.io/pointerevents/#dom-pointerevent-altitudeangle
https://w3c.github.io/pointerevents/#dom-pointerevent-azimuthangle

As Firefox already supports tiltX/tiltY, it should hopefully be straightforward to backfill these properties following the algorithm sketched out here https://w3c.github.io/pointerevents/#converting-between-tiltx-tilty-and-altitudeangle-azimuthangle

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core
Blocks: pointerevent
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1656377
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.