makes an effect similar to Wechat"s address book. The mpvue scrolls the
page. When scrolling to the A letter, the right A letter appears with a blue background.
but when scrolling, the data rendering is delayed. After assigning a value to the otherLetterIndex, the blue background will not appear until 5 seconds.
scroll(e,index){
var h1 = e.target.scrollTop;
var h2 = this.scrollTopArr[this.letterIndex];
var h3 = this.scrollTopArr[this.letterIndex+1];
if(h1 > h3) {
this.letterIndexPP;
}
if(h1<h2){
this.letterIndex--;
}
if(h1 >= h2 && h1 < h3){
this.otherLetterIndex = this.letterIndex;
}
}
there is a problem with the Android, but there is no problem with the Mac
do the gods have any answers