fix some blocking animation behavior from applets

pull/1/head
Michail Vourlakos 8 years ago
parent 9cd16c5cda
commit f204cb3666

@ -758,30 +758,31 @@ Item {
}
onPositionChanged: {
if(!pressed){
if (root.isHorizontal){
var step = Math.abs(layoutsContainer.currentSpot-mouse.x);
if (step >= container.animationStep){
layoutsContainer.hoveredIndex = index;
layoutsContainer.currentSpot = mouse.x;
wrapper.calculateScales(mouse.x);
}
// if(!pressed){
if (root.isHorizontal){
var step = Math.abs(layoutsContainer.currentSpot-mouse.x);
if (step >= container.animationStep){
layoutsContainer.hoveredIndex = index;
layoutsContainer.currentSpot = mouse.x;
wrapper.calculateScales(mouse.x);
}
else{
var step = Math.abs(layoutsContainer.currentSpot-mouse.y);
if (step >= container.animationStep){
layoutsContainer.hoveredIndex = index;
layoutsContainer.currentSpot = mouse.y;
}
else{
var step = Math.abs(layoutsContainer.currentSpot-mouse.y);
if (step >= container.animationStep){
layoutsContainer.hoveredIndex = index;
layoutsContainer.currentSpot = mouse.y;
wrapper.calculateScales(mouse.y);
}
wrapper.calculateScales(mouse.y);
}
}
// }
mouse.accepted = false;
}
onPressed: pressed = true;
onReleased: pressed = false;
}
//BEGIN states

Loading…
Cancel
Save