Fix chat effect particles sometimes getting 'stuck' on screen
This commit is contained in:
parent
b541f5eb68
commit
24389f36f8
@ -381,7 +381,10 @@ Item {
|
|||||||
repeat: false
|
repeat: false
|
||||||
running: false
|
running: false
|
||||||
|
|
||||||
onTriggered: shouldEffectsRun = false
|
onTriggered: {
|
||||||
|
timelineEffects.removeParticles()
|
||||||
|
shouldEffectsRun = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
function onConfetti() {
|
function onConfetti() {
|
||||||
|
@ -21,6 +21,11 @@ Item {
|
|||||||
rainfallEmitter.pulse(effectRoot.height * 3.3)
|
rainfallEmitter.pulse(effectRoot.height * 3.3)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeParticles()
|
||||||
|
{
|
||||||
|
particleSystem.reset()
|
||||||
|
}
|
||||||
|
|
||||||
ParticleSystem {
|
ParticleSystem {
|
||||||
id: particleSystem
|
id: particleSystem
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user