offsetX offsetY are always 0 in event object but have values when accessed via property
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: gbock77, Unassigned)
Details
Attachments
(1 file)
20.81 KB,
image/png
|
Details |
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.
Comment 1•5 years ago
|
||
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.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•