Skip to content

Dragoverlay gap to cursor #1649

Description

@gandarufu

Upon migrating to React 19.0.0 and Tailwind v4, I noticed that the DragOverlay jumps down roughly 55 pixels from the cursor, when I start dragging, and it keeps that offset. That wasn't the case before.

I can fix it with a negative marginTop, but I'd love to understand why this is happening.

Image

<DragOverlay
adjustScale
// style={{ marginTop: "-55px" }}
>
   <div className='w-full h-12 bg-indigo-800'>Overlay</div>
</DragOverlay>

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