alibaba / weex

A framework for building Mobile cross-platform UI
https://weexapp.com/
Apache License 2.0
18.28k stars 2.13k forks source link

Fix the problem that when the list is under one piece of data, the loading label will be displayed by default in the drop-down refresh list #3298

Closed yuditxj closed 2 years ago

yuditxj commented 2 years ago

Fix the problem that when the list is under one piece of data, the loading label will be displayed by default in the drop-down refresh list

原因: 下拉动作结束时,触发了scrollerview的scrollViewDidEndDragging逻辑,该逻辑中没有考虑list列表不满一屏的场景,导致默认设置loading标签的hidden为NO

解决方案: scrollViewDidEndDragging方法中增加loading标签的displayState属性判断

Brief Description of the PR

Checklist