Ver Fonte

删除无用的代码

onecold há 11 meses atrás
pai
commit
8768a23f45
1 ficheiros alterados com 0 adições e 6 exclusões
  1. 0 6
      entry/src/main/ets/view/LocalMusic.ets

+ 0 - 6
entry/src/main/ets/view/LocalMusic.ets

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