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

写了一个iSlider的源码体会 #11

Open
trueFeeling opened this issue Feb 8, 2018 · 0 comments
Open

写了一个iSlider的源码体会 #11

trueFeeling opened this issue Feb 8, 2018 · 0 comments

Comments

@trueFeeling
Copy link

trueFeeling commented Feb 8, 2018

按自己的理解写了一个源码解读,并且有几个小问题:

[1] 避免滑动太快产生间隙,记录new Date()来进行判断可能会好一些?
[2] 在_touchmove函数里面this.startPosNext = this.totalDist,为什么需要赋值给startPostNext,每次的_touchStart函数不是都将this.startPosNext 重置了?

iSlider源码解读

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