Open Bug 1906968 Opened 1 year ago Updated 9 hours ago

Occasional spurious pen pointer event with pressure=0.5 tiltX=0 tiltY=0

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 127
defect

Tracking

()

UNCONFIRMED

People

(Reporter: denilsonsa, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached image screen-recording.gif

Steps to reproduce:

  • 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. (But hopefully reproducible with any pen tablet.)

Steps to reproduce:

  1. Open https://output.jsbin.com/rawusar/4
  2. Tap the pen onto the tablet, multiple times.

Actual results:

Randomly, the pen pressure is reported as 0.5 and both tiltX and tiltY are reported as 0.

Expected results:

Well, not that. That spurious pointer event is quickly followed by correct events with the expected amounts of pressure and tilt.


This can also be reproduced on: https://patrickhlauke.github.io/touch/pen-tracker/
On this page, we can (randomly) see the wrong pressure/tilt values for a fraction of a second.


This bug does NOT happen on Google Chrome on the same system.

This bug was originally mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1705892#c7

I'm attaching a relevant portion of the terminal output from running with MOZ_LOG="Widget:5". If I were to guess, I would believe this bug happens whenever there are two consecutive Button 1 press lines in the log.

I'm attaching a short screen recording showing the bug in the linked webpage. The attached GIF corresponds to the attached log.

Attached file MOZ_LOG.txt

This probably blocks bug 1631377

Component: Untriaged → Widget: Gtk
Priority: -- → P3
Product: Firefox → Core
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: