Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Added a new setting to dndList: dndInvadeMode #437

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bitflower
Copy link

dndInvadeMode: Optional boolean expression. When set to true the positioning algorithm will swap the respective list item with the placeholder immediately when the mouse enters the list item (mouse x is between top/bottom or left/right depending on dnd-horizontal-list)

Background info: I have a horizontal list and wanted the items to "swap" immediately when entered. This is now possible. See video for example!

Hope you like it ;-)
dndlists

Optional boolean expression. When set to true the positioning algorithm will swap the respective list item with the placeholder immediately when the mouse enters the list item (mouse x is between top/bottom or left/right depending on dnd-horizontal-list)
@bitflower
Copy link
Author

BTW: didn't minify (yet) as theres no build step?

@POjark
Copy link

POjark commented Dec 18, 2018

When set to true the positioning algorithm will swap the respective list item with the placeholder immediately when the mouse enters the list item

Is this suppose to work for example with the "Demo: Simple Lists" -example?
I don't see any difference except can not drop to end of the list.. It does not replace anything in the list, not while hovering nor at drop? How to make this work?
<ul dnd-list="list" dnd-invade-mode="true" dnd-horizontal-list="true">

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants