|
@@ -4681,13 +4681,7 @@ export struct LocalMusic {
|
|
|
if(this.curIndex>500)//条数太大的时候 滚动非常卡 导致闪退,先改为不滚
|
|
if(this.curIndex>500)//条数太大的时候 滚动非常卡 导致闪退,先改为不滚
|
|
|
return
|
|
return
|
|
|
try {
|
|
try {
|
|
|
- // const C_ITEM_HEIGHT = this.twoFingerType == 3 ? ITEM_HEIGHT_BIG : this.twoFingerType == 2 ? ITEM_HEIGHT : ITEM_HEIGHT_SMALL
|
|
|
|
|
- // const offset = this.curIndex * C_ITEM_HEIGHT;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- //this.playListScroller.scrollTo({ xOffset: 0, yOffset: offset, animation: { duration: 1000, curve: Curve.EaseInOut } });
|
|
|
|
|
-
|
|
|
|
|
this.getUIContext()?.animateTo({ duration: 555 }, () => {
|
|
this.getUIContext()?.animateTo({ duration: 555 }, () => {
|
|
|
this.playListScroller.scrollToIndex(this.curIndex,true, ScrollAlign.CENTER)
|
|
this.playListScroller.scrollToIndex(this.curIndex,true, ScrollAlign.CENTER)
|
|
|
})
|
|
})
|