Skip to content

ZDampingNestedScrollView 包裹 VerticalSeekBar 导致滑动冲突 #1

Description

@pythoncat1024

当使用 ZDampingNestedScrollView 包裹的ViewGroup中包含一个可以竖向滑动的View 的时候,在滑动这个 View 的时候,会出现滑动冲突。

出现的场景:

<ZDampingNestedScrollView ...>
    <Linearlayout ...>
        <TextView ../>
        <TextView ../>
        <VerticalSeekBar ../>
        <TextView ../>

</ZDampingNestedScrollView>

在滑动 VerticalSeekBar的时候,会带动 Linearlayout整体一起差速滑动。

解决方案: 将 ZDampingNestedScrollView#dispatchTouchEvent(ev) 里面的逻辑移动到ZDampingNestedScrollView#onTouchEvent(ev) 中。

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