|
|
@@ -222,11 +222,11 @@ export struct LyricView2 {
|
|
|
.contentEndOffset(this.h / 3)
|
|
|
.contentStartOffset(this.isUserTouching?this.h / 3:0)
|
|
|
.cachedCount(this.cacheSize)
|
|
|
- .chainAnimation(true)
|
|
|
- .animation({
|
|
|
- curve: curves.springCurve(100, 10, 80, 10),
|
|
|
- duration: 500
|
|
|
- })
|
|
|
+ // .chainAnimation(true)
|
|
|
+ // .animation({
|
|
|
+ // curve: curves.springCurve(100, 10, 80, 10),
|
|
|
+ // duration: 500
|
|
|
+ // })
|
|
|
.visibility(this.isLoadingData ? Visibility.Hidden : Visibility.Visible)
|
|
|
.onScrollIndex((_, __, center) => {
|
|
|
const now = Date.now()
|
|
|
@@ -280,10 +280,10 @@ export struct LyricView2 {
|
|
|
(index >= this.currentIndex && index <= this.currentIndex + 1 ? Visibility.Visible : Visibility.None)
|
|
|
: Visibility.Visible)
|
|
|
.width(this.alignMode == 'center' ? '100%' :index == this.currentIndex ?'95%': '80%')
|
|
|
- .animation({
|
|
|
- duration: 150,
|
|
|
- curve: Curve.Linear
|
|
|
- })
|
|
|
+ // .animation({
|
|
|
+ // duration: 150,
|
|
|
+ // curve: Curve.Linear
|
|
|
+ // })
|
|
|
.blendMode(
|
|
|
index == this.currentIndex ? BlendMode.DST_IN : undefined,
|
|
|
index == this.currentIndex ? BlendApplyType.OFFSCREEN : undefined
|
|
|
@@ -307,10 +307,10 @@ export struct LyricView2 {
|
|
|
index == this.currentIndex ? BlendApplyType.OFFSCREEN : undefined
|
|
|
)
|
|
|
.width(this.alignMode == 'center' ? '100%' :index == this.currentIndex ?'95%': '80%')
|
|
|
- .animation({
|
|
|
- duration: 150,
|
|
|
- curve: Curve.Linear
|
|
|
- })
|
|
|
+ // .animation({
|
|
|
+ // duration: 150,
|
|
|
+ // curve: Curve.Linear
|
|
|
+ // })
|
|
|
|
|
|
}
|
|
|
}
|