CoderMJLee / MJRefresh

An easy way to use pull-to-refresh.
MIT License
13.8k stars 3.55k forks source link

Fix Bug:带灵动导的机型在某些场景中下拉刷新死循环 #1576

Closed iAmNotTom closed 1 year ago

iAmNotTom commented 2 years ago

关联 #1575 Fix Bug:带灵动导的机型的adjustedContentInset.top(包含safeAreaInsets.top)返回一个浮点数精度极高的异常值 影响判断 下拉刷新造成死循环

复现case: 1、ViewController 在viewWillAppear里 edgesForExtendedLayout.insert(.top) 2、scrollView的edges equal to superView布局 3、scrollView设置了contentInsets.top 比如32 4、执行下拉刷新 @CoderMJLee @wolfcon 截屏2022-09-27 19 34 46

wolfcon commented 1 year ago

already fixed in #1581