|
@@ -5403,7 +5403,7 @@ export struct LocalMusic {
|
|
|
.onScrollFrameBegin((offset: number) => {
|
|
.onScrollFrameBegin((offset: number) => {
|
|
|
// 获取当前滚动偏移量
|
|
// 获取当前滚动偏移量
|
|
|
if(this.autoHideTitle){
|
|
if(this.autoHideTitle){
|
|
|
- const currentOffsetY = this.scroller.currentOffset().yOffset;
|
|
|
|
|
|
|
+ const currentOffsetY = this.waterScroller.currentOffset().yOffset;
|
|
|
// 判断滚动方向
|
|
// 判断滚动方向
|
|
|
if (currentOffsetY > this.prevOffsetY) {
|
|
if (currentOffsetY > this.prevOffsetY) {
|
|
|
console.log("onecold 向上滚动");
|
|
console.log("onecold 向上滚动");
|
|
@@ -6643,7 +6643,7 @@ export struct LocalMusic {
|
|
|
.onScrollFrameBegin((offset: number) => {
|
|
.onScrollFrameBegin((offset: number) => {
|
|
|
// 获取当前滚动偏移量
|
|
// 获取当前滚动偏移量
|
|
|
if(this.autoHideTitle){
|
|
if(this.autoHideTitle){
|
|
|
- const currentOffsetY = this.scroller.currentOffset().yOffset;
|
|
|
|
|
|
|
+ const currentOffsetY = this.listScroller.currentOffset().yOffset;
|
|
|
// 判断滚动方向
|
|
// 判断滚动方向
|
|
|
if (currentOffsetY > this.prevOffsetY) {
|
|
if (currentOffsetY > this.prevOffsetY) {
|
|
|
console.log("onecold 向上滚动");
|
|
console.log("onecold 向上滚动");
|