We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
this.$refs.LuckyWheel.stop(Math.random() * 8 >> 0) 这个结束的速度太快了,我想给用户一点刺激的紧迫感,应该如何改源码呢,没找到哎,谢谢亲
this.$refs.LuckyWheel.stop(Math.random() * 8 >> 0)
The text was updated successfully, but these errors were encountered:
源码基于TS编译:lucky-canvas 在 slowDown 方法里使用了张鑫旭大佬的 tween.js 的二次方缓动函数来实现的停止逻辑
slowDown
tween.js
Sorry, something went wrong.
我更建议你使用defaultConfig.decelerationTime来微调缓慢停止时间,建议范围1000 ~ 5000 用着顺手可以点个 star 支持一下
defaultConfig.decelerationTime
谢谢大佬,可以了
No branches or pull requests
this.$refs.LuckyWheel.stop(Math.random() * 8 >> 0)
这个结束的速度太快了,我想给用户一点刺激的紧迫感,应该如何改源码呢,没找到哎,谢谢亲
The text was updated successfully, but these errors were encountered: