Fix chat effect particles sometimes getting 'stuck' on screen

This commit is contained in:
Joseph Donofry 2023-10-09 21:19:43 -04:00
parent b541f5eb68
commit 24389f36f8
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 9 additions and 1 deletions

View file

@ -381,7 +381,10 @@ Item {
repeat: false
running: false
onTriggered: shouldEffectsRun = false
onTriggered: {
timelineEffects.removeParticles()
shouldEffectsRun = false
}
}
Connections {
function onConfetti() {

View file

@ -21,6 +21,11 @@ Item {
rainfallEmitter.pulse(effectRoot.height * 3.3)
}
function removeParticles()
{
particleSystem.reset()
}
ParticleSystem {
id: particleSystem