Closed Bug 1608323 Opened 5 years ago Closed 5 years ago

offsetX offsetY are always 0 in event object but have values when accessed via property

Categories

(Core :: DOM: Events, defect)

71 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1359440

People

(Reporter: gbock77, Unassigned)

Details

Attachments

(1 file)

Attached image offsetx offsety.PNG

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

jsfiddle: https://jsfiddle.net/9a2zo7vb/

After clicking on the canvas, in the console it will print the mouse click event object and the offsetX and offsetY property values. When the property values are accessed they return the correct value. However if the event object is inspected the object the property values are listed as 0 and 0.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Hi,

I have managed to reproduce this issue on latest FF release 72.0.1, Beta 73.0b4 and latest Nightly build 74.0a1 (2020-01-13) using Windows 10.
Further, I will move this over to a component so developers can take a look over it. If this is not the correct component please feel free to change it to an appropriate one.
The issue is not reproducible on Chrome.

Thanks for the report.

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Events
Ever confirmed: true
Product: Firefox → Core
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: