In current version you must drag block through the entire height of another to replace them. It's very difficult (frequently impossible), when blocks have big height (for example greater than the height of the monitor screen).
I try to modernize this lib: when one block start's to drag, it's placeholder change it's coordinates when block just start overlapping another.
I got it for situation, when block is dragging up.
In original lib in function "set_player" I comment row 1275:
if (!$overlapped_widgets.length) {
But I can't reach such result, when block is dragging down.
In current version you must drag block through the entire height of another to replace them. It's very difficult (frequently impossible), when blocks have big height (for example greater than the height of the monitor screen).
I try to modernize this lib: when one block start's to drag, it's placeholder change it's coordinates when block just start overlapping another.
I got it for situation, when block is dragging up. In original lib in function "set_player" I comment row 1275: if (!$overlapped_widgets.length) {
But I can't reach such result, when block is dragging down.