mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Fix chat effect particles sometimes getting 'stuck' on screen
This commit is contained in:
parent
b541f5eb68
commit
24389f36f8
2 changed files with 9 additions and 1 deletions
|
@ -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 a new issue