Pen pointer without tilt support still reports tiltX=1 and tiltY=1
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: denilsonsa, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Steps to reproduce:
Context:
- Firefox nightly 130.0a1 (2024-07-09) (64-bit)
- Manjaro Linux on x86_64
- KDE/Plasma with X11
- [056a:0016] Wacom Co., Ltd CTE-640 [Graphire4 (6x8)] using the default kernel drivers.
AFAIK, this is the tilt support for Wacom tablets:
- Bamboo, Graphire: basic models, no tilt support.
- Intuos, Intuos Pro, Cintiq: professional models, with tilt support.
(As a side note, very few Wacom pens support twist/rotation.)
I don't know about tilt support on tablets from other brands, nor for devices such as Microsoft Surface or even the iPad.
Steps to reproduce:
- Open one of the following pages:
- Use the pen.
Actual results:
This Wacom tablet does not support pen tilt. And yet Firefox reports tiltX=1
and tiltY=1
.
(Side note: twist=0
is working as expected, reporting zero for this device.)
Expected results:
Since tilt is not supported, we expect tiltX=0
and tiltY=0
. As per Pointer Events specifications:
For hardware and platforms that do not report tilt, the value MUST be 0.
…
For hardware and platforms that do not report tilt, the value MUST be 0.
…
For hardware and platforms that do not report twist, the value MUST be 0.
I've also tested on Google Chrome on this same system. This bug is NOT present in Chrome, it seems exclusive to Firefox.
Semi-related: bug 1822714
Updated•5 months ago
|
Updated•5 months ago
|
Reporter | ||
Comment 1•4 months ago
|
||
While testing bug 1906974 on a Microsoft Surface device, I found something.
The Surface pen supports tilt for the pen tip, but NOT for the pen eraser. Chrome handles it correctly: the pen tip shows tiltX and tiltY values, and the eraser shows those values as zero.
In Firefox, however, the eraser tiltX and tiltY values seem unchanged (i.e. leftover) from the pen tip value. In other words:
- Use Firefox (or Chrome) on Microsoft Surface.
- Touch the pen tip on the screen. Observe the tiltX and tiltY values changing.
- Flip the pen around, and touch (or press hard) the eraser on the screen.
- Since the eraser doesn't have tilt support, Chrome correctly shows tilt as zero, but Firefox shows tilt as the last tilt values from the pen tip. Oops!
Untested: twist. I don't have access to any pen with twist/rotation, and I can't test that.
Updated•4 months ago
|
Description
•