parabolic:fix applets clearing issue

work/m_edgeslide
Michail Vourlakos 3 years ago
parent b1c3594367
commit 98f39e17e3

@ -182,13 +182,13 @@ Item {
if (communicator.parabolicEffectIsSupported) { if (communicator.parabolicEffectIsSupported) {
communicator.bridge.parabolic.client.hostRequestUpdateLowerItemScale(newScales); communicator.bridge.parabolic.client.hostRequestUpdateLowerItemScale(newScales);
} else { } else {
updateScale(sideindex, 1); updateScale(appletItem.index, 1);
} }
} else if (ishigher && clearrequestedfromlastacceptedsignal && (appletItem.index > delegateIndex)) { //accept requestedfromlastacceptedsignal in higher direction if that is the case } else if (ishigher && clearrequestedfromlastacceptedsignal && (appletItem.index > delegateIndex)) { //accept requestedfromlastacceptedsignal in higher direction if that is the case
if (communicator.parabolicEffectIsSupported) { if (communicator.parabolicEffectIsSupported) {
communicator.bridge.parabolic.client.hostRequestUpdateHigherItemScale(newScales); communicator.bridge.parabolic.client.hostRequestUpdateHigherItemScale(newScales);
} else { } else {
updateScale(sideindex, 1); updateScale(appletItem.index, 1);
} }
} }
} }

@ -142,9 +142,10 @@ AbilityDefinition.ParabolicEffect {
function sltTrackLowerItemScale(delegateIndex, newScales){ function sltTrackLowerItemScale(delegateIndex, newScales){
//! send update signal to host //! send update signal to host
if (bridge) { if (bridge) {
var clearrequestedfromlastacceptedsignal = (newScales.length===1) && (newScales[0]===1);
if (delegateIndex === -1) { if (delegateIndex === -1) {
bridge.parabolic.clientRequestUpdateLowerItemScale(newScales); bridge.parabolic.clientRequestUpdateLowerItemScale(newScales);
} else if ((newScales.length===1) && (newScales[0]===1) && delegateIndex>=0) { } else if (clearrequestedfromlastacceptedsignal && delegateIndex>=0) {
bridge.parabolic.clientRequestUpdateLowerItemScale(newScales); bridge.parabolic.clientRequestUpdateLowerItemScale(newScales);
} }
} }
@ -153,9 +154,10 @@ AbilityDefinition.ParabolicEffect {
function sltTrackHigherItemScale(delegateIndex, newScales) { function sltTrackHigherItemScale(delegateIndex, newScales) {
//! send update signal to host //! send update signal to host
if (bridge) { if (bridge) {
var clearrequestedfromlastacceptedsignal = (newScales.length===1) && (newScales[0]===1);
if (delegateIndex >= indexer.itemsCount) { if (delegateIndex >= indexer.itemsCount) {
bridge.parabolic.clientRequestUpdateHigherItemScale(newScales); bridge.parabolic.clientRequestUpdateHigherItemScale(newScales);
} else if ((newScales.length===1) && (newScales[0]===1) && delegateIndex<indexer.itemsCount) { } else if (clearrequestedfromlastacceptedsignal && delegateIndex<indexer.itemsCount) {
bridge.parabolic.clientRequestUpdateHigherItemScale(newScales); bridge.parabolic.clientRequestUpdateHigherItemScale(newScales);
} }
} }

Loading…
Cancel
Save