Skip to content

onDragStop x value doesn't respect dragGrid #841

Open
@citripio

Description

@citripio

Here's a demo: https://codesandbox.io/s/magical-rui-oem7n?file=/src/index.js

With a dragGrid of, say, [50,50], the draggable element moves along the grid but the x value returned at onDragStop changes freely, when it should always be a multiple of 50.

Is this a bug, or is there another (correct) way to get how many steps the element has moved?

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