Skip to content

Spacer at on_drag_start() #45

Description

@Fr3d-P

Sorry, this isn't an issue, just a question...

Actually, the KXDraggableBehavior seems to work like this:

  • When drag_start, the widget is removed from his parent, so the other siblings are rearranged
  • When moving , a spacer is added to the parent, at the position of the potential drop, so the siblings move again

This behavior is visible in the "draggable_can_work_with_scrollview.py" example: if you press on a button and don't move, the spacer doesn't appear.

I would like the spacer to appears immediately when the drag start, so the visual effect would be more fluid from my point of view.

I tried to add some code in drag_start(), but didn't succeed. The only result I had was to have two spacers, and not in the right place...
Could you help me for this task?

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