Skip to content

onDragMove from useDrag is not triggered in FirefoxΒ #5943

Open
@polc

Description

@polc

Provide a general summary of the issue here

Hi!

In the following script, onDragMove is called correctly with the latest version of Chrome, but not with Firefox :

const {dragProps} = useDrag({
  getItems: () => [{'my-item': "My Custom Item"}],
  getAllowedDropOperations: () => ['link'],
  onDragMove: console.log,
})

πŸ€” Expected Behavior?

onDragMove shoud be called in Firefox.

😯 Current Behavior

onDragMove is not called in Firefox.

πŸ”¦ Context

I'm trying to display a line starting from the element being dragged to the drag button using SVG. I need the onDragMove function to update the SVG position so that the end of the line follows the drag.

πŸ–₯️ Steps to Reproduce

See this Candesandbox with Firefox.

Version

react-aria: 3.32.1

What browsers are you seeing the problem on?

Firefox 123.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions