Skip to content
This repository has been archived by the owner. It is now read-only.
This repository has been archived by the owner. It is now read-only.

scroll 事件似乎不是很灵敏? #19

@jimmyyao88

Description

@jimmyyao88

首先 ,很棒的组件
对比了一下原生的onscroll 事件 和 组件提供的scroll事件,同时监听容器的scrollTop值,在响应速度上似乎有点差距
见下图 这是原生onscroll事件 缓慢的滑动 中间的console 打印scrollTop的值,可以看到每次都是1px的加上去
nativescroll2
这是vue-pull-to的scroll 事件 缓慢的滑动后每次的最小插值都是2px 这就会导致在滚动事件上做一些监听动画会有明显的卡顿感
pulltoscroll
想知道怎样可以避免这个情况 ,或者作者能否指出 和原生onscroll做法的区别

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