Skip to content

[Next] Frame transform scale not accounted for #1706

@chrisvxd

Description

@chrisvxd

Description

When dragging an item in a scaled iframe, the droppable shape moves by more than the sensor. This implies the scale transform is not being accounted for.

I was able to reproduce this in the Puck demo app, but not in the dnd-kit iframe stories. Since I was unable to reproduce this in the iframe stories, it could be a Puck issue.

Possibly related: #1704.

Environment

  • dnd-kit version: 0.1.13

Steps to reproduce

Currently unable to reproduce in Storybook, but able to reproduce in the Puck demo app.

  1. Pull this branch: Add Puck example app #1677
  2. Update deps
  3. Run bun dev
  4. Visit http://localhost:5173/
  5. Drag in a new item

What happens

The droppable shape moves more than the pointer sensor once in the scaled iframe.

Kapture.2025-05-18.at.18.49.58.mp4

What I expect to happen

The droppable shape to follow the pointer sensor

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