Skip to content

[BUG]: drag axis doesn't work properly #969

Open
@mohiwalla

Description

@mohiwalla

What is happening?

I'm able to drag element in the non-allowed direction after mouseup event.
Dragging is only allowed for X axis in this example on story book, it works but only until mouse key is not lifted up.
Check this video.

Screencast_20250301_081510.webm

How to reproduce?

  1. Go to this page.
  2. Try dragging the element in non-allowed direction.
  3. Lift mouse key up after dragging.
  4. It should get dragged to other axis as well.

What should be happening?

As per the docs, it should only be draggable in one direction.

Image

System details
OS: Arch Linux, KDE plasma
Browser: Chrome, Firefox
Code sample: https://github.com/bokuweb/react-rnd/blob/master/stories/dragAxis/dragAxisX.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions