Closed Bug 1857203 Opened 2 years ago Closed 2 years ago

Mouse coordinates don't change while dragging

Categories

(Core :: DOM: Events, defect)

Firefox 117
defect

Tracking

()

RESOLVED DUPLICATE of bug 505521

People

(Reporter: agreedeth, Unassigned)

Details

Attachments

(1 file)

Attached video 2023-10-05_14-37-14.mp4

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Steps to reproduce:

  1. Create web page
  2. Mark an element as draggable
  3. Add event listener for drag event and try to get mouse position

Link for source code: https://stackblitz.com/edit/js-ns8ybc?file=index.js,index.html,style.css

  1. Select text
  2. Try to drag it
  3. See the console log

Actual results:

DragEvent.x, DragEvent.y, DragEvent.clientX, DragEvent.clientY is always zero

Expected results:

DragEvent.x, DragEvent.y, DragEvent.clientX, DragEvent.clientY show mouse position in browsers based on Chromium. I think it should be the same in firefox

Component: Untriaged → DOM: Copy & Paste and Drag & Drop
Product: Firefox → Core

Seems duplication of Bug 1822922

Component: DOM: Copy & Paste and Drag & Drop → DOM: Events
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1822922
Resolution: --- → DUPLICATE
Duplicate of bug: 505521
No longer duplicate of bug: 1822922
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: