Skip to content

Inconsistency between mouse position and root bounds #38

@eldjh3

Description

@eldjh3

There is an inconsistency between the origins used when calculating DnD behaviour and position relative to the rootContainer.

The mouse position is obtained using e.pageX/e.pageY. This is relative to the Document.

However, the bounds used when determining the position of the root container (and other bounds) are obtained using Element.getBoundingClientRect which is relative to the viewport.

This leads to incorrect dragging calculations when anything that is a parent of the root container is scrolled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions