Skip to content

Unexpected behavior for drag between line #417

@julianpoy

Description

@julianpoy

Describe the bug
The drag line doesn't disappear if the user's cursor leaves the dragline area.

To Reproduce
https://rct.lukasbach.com/docs/guides/drag-and-drop#only-reordering-of-items-allowed
Can be reproduced here.

  1. Drag an item
  2. Move your cursor between items to display the drag between line
  3. Move your cursor horizontally outside of the tree and see that the drag between line is still shown, even though dropping won't result in the item actually going there

You can also reproduce this (more significantly) when moving the cursor to the top or bottom of the tree, and then outside.

Expected behavior
The drag between line should only appear if the user's cursor is in a valid position to drop between items.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions