Skip to content

【问题】可否请教一下为什么计算惯性滑动的初始速度时候不是用滑动的距离除以滑动的时间? #271

@fantasy525

Description

@fantasy525

问题:以我的经验来看要获取手指滑动一段距离后产生的速度,用touchStart和touchEnd之间的距离除以时间即可,可是我看源码里貌似不是这样子的?是touchmouve期间记录最后几次触发touchmove事件的touch信息的pos和时间戳来算的,请问是这样吗

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