Skip to content

配合ScrollView层叠使用的时候,滑动ScrollView无法正确的让ScrollLayout展开和关闭 #23

@Matcha-xiaobin

Description

@Matcha-xiaobin

父控件FrameLayout
子控件--ScrollView
子控件--ScrollLayout
大概是这么个层级关系,然后监听了scrollview的滑动事件,滑动的时候,自动退出scrolllayout,但是不起作用。
看了下源代码,是因为没有处理那个scrolllayout的'滑动中'状态,导致scrollview滑动的时候多次调用了scrollTiExit()。并且因为并没真正退出scrollview,导致获取到的状态一直是OPEN。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions