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
|
||||
running: false
|
||||
|
||||
onTriggered: shouldEffectsRun = false
|
||||
onTriggered: {
|
||||
timelineEffects.removeParticles()
|
||||
shouldEffectsRun = false
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
function onConfetti() {
|
||||
|
@ -21,6 +21,11 @@ Item {
|
||||
rainfallEmitter.pulse(effectRoot.height * 3.3)
|
||||
}
|
||||
|
||||
function removeParticles()
|
||||
{
|
||||
particleSystem.reset()
|
||||
}
|
||||
|
||||
ParticleSystem {
|
||||
id: particleSystem
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user