Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fantasy525 opened this issue May 8, 2021 · 0 comments

Comments

@fantasy525
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant