1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-28 18:50:40 +03:00

dont break parabolic effect when dropping url

--when the user was dropping a file onto a launcher
after the new window was created the parabolic
effect was showing a faulty triggering.
This commit is contained in:
Michail Vourlakos 2018-10-03 22:42:54 +03:00
parent 80ace6c187
commit d2a83c780f

View File

@ -168,11 +168,16 @@ Item {
}
} else if (!root.dragSource && above && hoveredItem != above) {
hoveredItem = above;
if (!onlyLaunchers) {
//! it is needed when dropping a url on a launcher in order to not break parabolic effect
root.setHoveredIndex(hoveredItem.itemIndex);
}
//root.dropNewLauncher = true;
activationTimer.restart();
} else if (!above) {
//root.dropNewLauncher = true;
hoveredItem = null;
root.setHoveredIndex(-1);
activationTimer.stop();
}
@ -183,6 +188,7 @@ Item {
onDragLeave: {
hoveredItem = null;
root.setHoveredIndex(-1);
root.dropNewLauncher = false;
onlyLaunchers = false;
root.separatorsUpdated();