Skip to content

event.operation.transform never gets updated when feedback is "none" #2055

Description

@jindong-zhannng

Issue:

When feedback is disabled via Feedback.configure({ feedback: 'none' }), operation.transform in the onDragStart / onDragMove / onDragEnd events always remains at its initial value { x: 0, y: 0 }.

Background:

I'm using dnd-kit to implement card resize handles. In this scenario, I don't need any feedback element or overlay at all — the handle will be positioned according to the card's size rather than the mouse position.

In this case, I rely on the transform value from the events to compute the latest card's size.

Root cause:

dragOperation.snapshot().transform only reads from the cache without triggering a recomputation, and the transform is only computed inside the Feedback plugin (and only when a feedback element exists).

As a result, when feedback === 'none', dragOperation.snapshot().transform will always return only the initial value.

This looks like a bug — having system event values depend heavily on the internal behavior of a plugin feels like a leaky abstraction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdomDOM packagetriage:doneIssue has been triaged by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions