Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Sep 12, 2022
1 parent ff37d28 commit 7def8d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ For details, please check [Demo](https://github.com/fatbobman/IsScrolling/tree/m
No matter which monitoring mode IsScrolling provides, it cannot be 100% accurate. After all, IsScrolling inferred the current scrolling state of a scrollable component from certain external phenomena. Known issues are.

* When the scrolling content is at the top or bottom of the container and in a bouncy state, clicking on it to stop scrolling and then releasing it may result in a perturbation of the scrolling state (the state changes rapidly once,This situation also exists even with UIScrollViewDelegate)
* When the content in the scrollable component changes in size or position that is not caused by scrolling (for example, the size of a view in a List is animatedly changed), IsScrolling may mistakenly judge that scrolling has occurred in common mode, but in the view After the change is over, the state will immediately return to the end of the scroll
* When the content in the scrollable component changes in size or position not caused by scrolling (for example, the size of a view in a List changes dynamically), IsScrolling may mistakenly judge that scrolling has occurred in common mode, but in the view After the change is over, the state will immediately return to the end of the scroll
* After the scrolling starts (the status has changed to scrolling ), stop scrolling, but the finger is still in the pressed state, the common mode will regard this as the end of the scrolling, and the exclusion mode will still keep the scrolling state until the finger ends pressing

## Requirements
Expand Down
4 changes: 2 additions & 2 deletions READMECN.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ struct ListCommonDemo: View {
无论采用 IsScrolling 提供的哪种监控模式,都无法做到 100% 的准确。毕竟 IsScrolling 是通过某些外在的现象来推断可滚动组件的当前滚动状态。已知的问题有:

* 当滚动内容处于容器的顶部或底部且处于回弹状态时,此时点击停止滚动,再松手,可能会出现滚动状态的扰动( 状态会快速变化一次,此种情况即使使用 UIScrollViewDelegate 也同样存在 )
* 当可滚动组件中的内容出现了非滚动引起的尺寸或位置的变化( 例如 List 中某个视图的尺寸发生了动画变化 ),IsScrolling 在 common 模式下可能会误判断为发生了滚动,但在视图的变化结束后,状态会马上恢复到滚动结束
* 滚动开始后( 状态已变化为滚动中 ),停止滚动,但手指仍处于按压状态,common 模式会将此时视为滚动结束,exclusion 模式仍会保持滚动中的状态直到手指结束按压
* 当可滚动组件中的内容出现了非滚动引起的尺寸或位置的变化( 例如 List 中某个视图的尺寸发生了动态变化 ),IsScrolling 在 common 模式下可能会误判断为发生了滚动,但在视图的变化结束后,状态会马上恢复到滚动结束
* 滚动开始后( 状态已变化为滚动中 ),保持手指处于按压状态并停止滑动,common 模式会将此时视为滚动结束,exclusion 模式仍会保持滚动中的状态直到手指结束按压

## 需求

Expand Down

0 comments on commit 7def8d8

Please sign in to comment.