Closed Bug 1822922 Opened 3 years ago Closed 2 years ago

`drag` events have zero coordinates

Categories

(Core :: DOM: Events, defect)

Firefox 111
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 505521
Tracking Status
firefox-esr102 --- affected
firefox111 --- affected
firefox112 --- affected
firefox113 --- affected

People

(Reporter: avi, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

The drag event is a MouseEvent and therefore should have valid clientX, clientY, screenX, and screenY properties.

To reproduce:
0. download the attached repro file

  1. open the file
  2. open the console for the page
  3. drag the block of text on the page

What should happen is that the event listener on the “drag” event should show valid coordinates. What actually happens is that the clientX and clientY properties always return 0, and the screenX and screenY stay constant.

I can reproduce this on both Mac and Windows with Firefox 111.

I've reproduced the issue on the latest Nightly 113.0a1 and Firefox 111.0.1 versions on Windows 10, macOS 13 and Ubuntu 22.04.
Setting the component. If this is not the correct component, please feel free to change it to a more appropriate one.

Severity: -- → S3
Has STR: --- → yes
Component: Untriaged → DOM: Events
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → Desktop
Duplicate of this bug: 1857203
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 505521
Resolution: --- → DUPLICATE
No longer duplicate of this bug: 1857203
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: