Add support for "altitudeAngle" and "azimuthAngle" to pointer actions of subtype "touch"
Categories
(Remote Protocol :: Agent, task, P3)
Tracking
(firefox151 fixed)
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [webdriver:m19], [wptsync upstream][webdriver:relnote])
Attachments
(2 files)
Bug 2013990 added platform support for both altitudeAngle and azimuthAngle. It would be good to have support for both parameters so that I can properly check the behavior for async touch events as well.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
•
|
||
When adding support for altitudeAngle and azimuthAngle in WebDriver I noticed a difference in behavior between us and Chrome/Safari. This all is around https://www.w3.org/TR/pointerevents3/#dom-pointerevent-altitudeangle vs https://w3c.github.io/touch-events/#dom-touch-altitudeangle. What should actually be the default behavior? In our WebDriver specification we define 0 as default, and when I eg. set altitudeAngle: 1 when dispatching the event the resulting pointerdown event contains 1 as well while in both Chrome and Safari the value is Pi/2.
I assume that our implementation might not be correct here?
Edit: Both tiltX and tiltY are in these cases 0 for Chrome and Safari.
Comment 2•2 months ago
•
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+1] from comment #1)
In our WebDriver specification we define
0as default, and when I eg. setaltitudeAngle: 1when dispatching the event the resultingpointerdownevent contains1as well while in both Chrome and Safari the value is Pi/2.
On our implementation, if the event is synthesized with specifying altitudeAngle and azumuthAngle value, the event will use the specified value for altitudeAngle and azumuthAngle, and use them to generate tiltX and tiltY, per https://www.w3.org/TR/pointerevents3/#converting-between-tiltx-tilty-and-altitudeangle-azimuthangle.
So it look like Chrome/Safari returns default value even when altitudeAngle and azumuthAngle value is specified explicitly, that is strange. What if you set altitudeAngle and azumuthAngle to different value? I wonder if they always return default value. If that is the case, maybe they don't support specifying altitudeAngle and azumuthAngle?
| Assignee | ||
Comment 3•2 months ago
|
||
Indeed. It doesn't matter which value I set both browsers return the same value all the time. Same for the azimuthAngle as well. I checked with Firefox what we return if no value is set and it's Pi/2 as well. That means we should not default to 0 in WebDriver BiDi as value but should leave it to the platform to decide which value to use. Thanks!
| Assignee | ||
Comment 4•2 months ago
|
||
I created a BiDi spec PR at: https://github.com/w3c/webdriver-bidi/pull/1100
| Assignee | ||
Comment 5•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 6•2 months ago
|
||
| Assignee | ||
Comment 7•2 months ago
|
||
Removing all the default values including from pressure results in wpt failures for pointerevents:
As per pointerevents spec the defaults should be 0.5 and 0 depending on the active button state.
| Assignee | ||
Updated•2 months ago
|
Comment 8•2 months ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+1] from comment #7)
Removing all the default values including from
pressureresults in wpt failures for pointerevents:As per pointerevents spec the defaults should be
0.5and0depending on the active button state.
Yes, I think there is something wrong with the default value for pressure. I will investigate and file a bug.
| Comment hidden (obsolete) |
| Comment hidden (obsolete) |
| Comment hidden (obsolete) |
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 13•2 months ago
|
||
I pushed another try build: https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=186847. Hopefully only the Puppeteer fix is remaining now.
| Assignee | ||
Comment 14•2 months ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+1] from comment #13)
I pushed another try build: https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=186847. Hopefully only the Puppeteer fix is remaining now.
This looks good. We are only waiting for the Puppeteer changes now.
| Assignee | ||
Updated•2 months ago
|
Comment 15•2 months ago
|
||
Comment 16•2 months ago
|
||
| Assignee | ||
Updated•2 months ago
|
Comment 18•2 months ago
|
||
Comment 19•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b6bbda49bf6f
https://hg.mozilla.org/mozilla-central/rev/75d64e79a239
| Assignee | ||
Updated•26 days ago
|
Description
•