mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 20:18:53 +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
|
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 a new issue