[Wacom Intuos 3 6x8] pointerEvent.pointerType = "mouse" instead of "pen" on Linux
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: bobajeff82, Unassigned, NeedInfo)
References
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0
Steps to reproduce:
- Go to: https://output.jsbin.com/rawusar/4
- Tap in the green rectangle with a wacom intuos3 stylus
Actual results:
pointerEvent.pointerType shows "mouse" and pointerEvent.pressure, pointerEvent.tiltX and pointerEvent.tiltY values don't respond to input.
console.log output looks like:
pointerType: mouse 4:107:17
Pen not Detected. 4:115:17
pressure: 0.5 4:107:17
No Pressure Detected. 4:111:17
tiltX: 0 tiltY: 0 4:107:17
No Tilt Detected 4:111:17
---------------------------------------------- 4:178:13
Expected results:
pointerEvent.pointerType should be "pen".
Also, pointerEvent.pressure, pointerEvent.tiltX and pointerEvent.tiltY should report values my Wacom Intuos digitizer gives.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: UI Events & Focus Handling' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•4 years ago
|
Comment 5•8 months ago
|
||
Can you please test latest nightly with MOZ_USE_XINPUT2=1 env variable set? It should be fixed by Bug 1501744.
Thanks.
Yep, it works now.
Sample output.
This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”. 4
Cookie warnings 8
pointerType: pen 4:107:17
button:0 4:107:17
[Pen Contact] 4:107:17
pressure: 0.2101593017578125 4:107:17
tiltX: 26 tiltY: 28 4:107:17
---------------------------------------------- 4:178:13
pointerType: pen 4:107:17
button:0 4:107:17
[Pen Contact] 4:107:17
pressure: 0.0801544189453125 4:107:17
tiltX: 59 tiltY: 47 4:107:17
---------------------------------------------- 4:178:13
pointerType: pen 4:107:17
button:1 4:107:17
button: 1 4:107:17
pressure: 0.5 4:107:17
No Pressure Detected. 4:111:17
tiltX: 19 tiltY: 53 4:107:17
---------------------------------------------- 4:178:13
pointerType: pen 4:107:17
button:2 4:107:17
[Pen Barrel Button] 4:107:17
pressure: 0.5 4:107:17
No Pressure Detected. 4:111:17
tiltX: 39 tiltY: 74 4:107:17
---------------------------------------------- 4:178:13
Comment 7•8 months ago
|
||
I just tested 129.0a1 (2024-07-05) (64-bit).
Running with MOZ_USE_XINPUT2=1 environment variable.
I can confirm:
- https://patrickhlauke.github.io/touch/pen-tracker/ - Works now.
- https://kleki.com/ - Works now.
- https://patrickhlauke.github.io/touch/tracker/tracker-force-pressure.html - Correctly shows mouse and pen as separate devices.
- https://output.jsbin.com/rawusar/4 - Works now.
- https://pressurejs.com/ - Works now.
- https://patrickhlauke.github.io/touch/tracker/multi-touch-tracker-pointer-hud.html - Works, and shows that pointerId is different between my mouse and my pen.
I did not test:
- Pen tilt. My Wacom tablet doesn't support pen tilt. (See also bug 1822714.)
- Pen rotation/twist. My Wacom tablet doesn't support pen rotation.
- Touch. I don't have a touchscreen to test, I can't test if the 3rd link correctly shows separate mouse/pen/touch events. I could only test separate mouse/pen events.
- MOZ_USE_XINPUT2 being unset. I think there is a separate bug about changing the default value of this variable.
HOWEVER:
-
Eraser (i.e. using the pen upside-down) has the wrong button number. It is supposed to be 32, but it is being reported as 1, the same as the pen tip. Can be tested on the 6th link. https://www.w3.org/TR/pointerevents/#the-buttons-property I don't know if we already have a bug tracking this.
-
Randomly, the pen events get reported as "pressure=0.5, tiltX=0, tiltY=0". It's easy to see on the fourth link, but lightly and quickly tapping the pen. It is also noticeable on the first link, but very hard to notice because such spurious/wrong event is quickly followed by a correct event with proper pressure values (and tiltX=1, tiltY=1 in the case of my pen). I think there is already a bug about this odd behavior somewhere, but I couldn't find it (and Bugzilla has been having some server-side issues today).
Comment 8•8 months ago
|
||
(In reply to Denilson Figueiredo de Sá from comment #7)
- Eraser (i.e. using the pen upside-down) has the wrong button number. It is supposed to be 32, but it is being reported as 1, the same as the pen tip. Can be tested on the 6th link. https://www.w3.org/TR/pointerevents/#the-buttons-property I don't know if we already have a bug tracking this.
Please report it as a new bug and CC me there.
- Randomly, the pen events get reported as "pressure=0.5, tiltX=0, tiltY=0". It's easy to see on the fourth link, but lightly and quickly tapping the pen. It is also noticeable on the first link, but very hard to notice because such spurious/wrong event is quickly followed by a correct event with proper pressure values (and tiltX=1, tiltY=1 in the case of my pen). I think there is already a bug about this odd behavior somewhere, but I couldn't find it (and Bugzilla has been having some server-side issues today).
Also please report it as a new bug and CC me there. Please run Firefox on terminal with MOZ_LOG="Widget:5" env variable and attach the log if you see the wrong values.
Thanks.
Comment 9•8 months ago
|
||
Closing this one as fixed by bug 1501744.
Comment 10•8 months ago
|
||
Thank you for looking into this!
I've created a few bug reports for issues I've noticed with Pointer input:
- Bug 1906968 - Occasional spurious pen pointer event with pressure=0.5 tiltX=0 tiltY=0
- Bug 1906974 - Wacom pen eraser reported as button 1 instead of 32 in Pointer event
- Bug 1906977 - Pen pointer without tilt support still reports tiltX=1 and tiltY=1
(I'm commenting here to clear the needinfo
flag.)
Updated•8 months ago
|
Updated•7 months ago
|
Description
•