Open Bug 1447580 Opened 6 years ago Updated 7 months ago

[Pointer Events] [Pen]Pointer Devices that identify as mouse (but are not an actual mouse) log wrong coordinates

Categories

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

60 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nik.kyriakides, Unassigned)

Details

Attachments

(2 files)

Attached image actual-result.png
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36

Steps to reproduce:

- Use Firefox 59 or Firefox 60 on Windows 10+.
- Created a canonical, simple, freehand-drawing canvas app (for test-case).
- Use a Wacom Pen Tablet/Digitiser.
- Turn "Windows Ink" off. Go to Start -> Wacom Tablet Properties -> "Mapping" tab -> Uncheck "Use Windows Ink". This causes the pointer to identify as `pointerType === 'mouse'` within Firefox, for the PointerEvents API.
- Open this JSFiddle: https://jsfiddle.net/d2gxjdva/190/
- Draw circles with your mouse. Try to draw a bit fast.


Actual results:

- Circles have knots in intermittent intervals. They produce irregular peaks. 
- e.clientX, e.clientY values are not always accurate. They sometimes produce back steps. See attached file 'actual-result.png'.
 


Expected results:

- Circles are do not have irregular knots.
- See attached file 'expected-result.png'.
Although I've posted this bug report from a Mac, this bug is only applicable on Windows 10.
I tried to reproduce the issue following the steps from comment 0 on a Microsoft Surface Pro 4 (we don't own a Wacom Tablet) and didn't managed to reproduce.

Based on the nature of the bug, I think this belongs to Event Handling component.
Component: Untriaged → Event Handling
Product: Firefox → Core
(In reply to David Olah from comment #3)

The pen needs to report no pressure for this bug to take place. Turning off Windows Ink on Wacom's causes the device to identify as a Mouse.
Priority: -- → P2
Summary: Pointer Devices that identify as mouse (but are not an actual mouse) log wrong coordinates → [Pointer Events] Pointer Devices that identify as mouse (but are not an actual mouse) log wrong coordinates
Component: Event Handling → User events and focus handling

Bug still existst on FF Quantum 66.0.2 (64-bit).

Can confirm as owner of a CTH-470 BAMBOO Tablet, using Windows Ink results on not beign able to draw because scrolling takes place, a workaround is to use the Pen's button instead.

Severity: normal → S3
Priority: P2 → --
Summary: [Pointer Events] Pointer Devices that identify as mouse (but are not an actual mouse) log wrong coordinates → [Pointer Events] [Pen]Pointer Devices that identify as mouse (but are not an actual mouse) log wrong coordinates
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: