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.
pull/2/head
Michail Vourlakos 7 years ago
parent 8db41a9ec2
commit 6f0bde510c

@ -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();

Loading…
Cancel
Save