Open Bug 1641723 Opened 5 years ago Updated 1 year ago

offsetX and offsetY for mouseMove event shift in the -x -y direction when mouse has moved less than 1px

Categories

(Core :: DOM: Events, defect)

76 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: conartist6, Unassigned)

Details

Attachments

(1 file)

Attached image Spiny line

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36

Steps to reproduce:

Registered a mousemove handler and drew resulting offsetX and offsetY coordinates while moving the mouse very slowly.

I'm including a repro in react app form: https://github.com/plangrid/drawing-in-space/tree/firefox-bug-report

Actual results:

The line drawn has exciting spines pointing up and to the left an amount that is semi-consistent. If I reload the page the size of the spines will differ (and sometimes even within one page load). It seems a few directions are possible, but the direction is usually consistent.

Expected results:

The line is smooth, following only where the mouse cursor has been.

I also checked to make sure it wasn't a defect in my line renderer -- the aberrations can be seen in the data coming directly from the event listener.

100% repro rate across three devices. Input devices in included mouse and touchpad. Issue not seen in Safari or Chrome.

I could not reproduce this issue, tried on Mac OS X 10.15 using the latest Nightly 79.0a1. I'm going to set the component Dom: Events, so that someone with more experience in the area could take a look.

Component: Untriaged → DOM: Events
Product: Firefox → Core

I don't see any odd behavior in the mouse event test suite on Win10.

smaug, any ideas?

Flags: needinfo?(bugs)
Severity: -- → S4

I don't have.

Flags: needinfo?(smaug)

Maybe Edgar has ideas?

Flags: needinfo?(echen)

I tried with https://github.com/plangrid/drawing-in-space/tree/firefox-bug-report on macOS, but I could not reproduce the issue.

Flags: needinfo?(echen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: