mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-19 04:08:48 +00:00
StyledText: fix text being offset with rapid change (#1942)
This commit is contained in:
parent
5565911e2c
commit
e9fd2f89fe
1 changed files with 5 additions and 6 deletions
|
|
@ -25,6 +25,11 @@ Text {
|
|||
easing.bezierCurve: Appearance.animation.elementMoveFast.bezierCurve
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
textAnimationBehavior.originalX = root.x;
|
||||
textAnimationBehavior.originalY = root.y;
|
||||
}
|
||||
|
||||
Behavior on text {
|
||||
id: textAnimationBehavior
|
||||
property real originalX: root.x
|
||||
|
|
@ -33,12 +38,6 @@ Text {
|
|||
|
||||
SequentialAnimation {
|
||||
alwaysRunToEnd: true
|
||||
ScriptAction {
|
||||
script: textAnimationBehavior.originalX = root.x;
|
||||
}
|
||||
ScriptAction {
|
||||
script: textAnimationBehavior.originalY = root.y;
|
||||
}
|
||||
ParallelAnimation {
|
||||
Anim {
|
||||
property: "x"
|
||||
|
|
|
|||
Loading…
Reference in a new issue