[improvement] Picker: update acceleration rate (#3556)

This commit is contained in:
neverland 2019-06-19 14:23:51 +08:00 committed by GitHub
parent 6a6cc1cef7
commit 6d4bd79922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,7 @@ export default sfc({
momentum(distance, duration) {
const speed = Math.abs(distance / duration);
distance = this.offset + speed / 0.0015 * (distance < 0 ? -1 : 1);
distance = this.offset + speed / 0.002 * (distance < 0 ? -1 : 1);
const index = this.getIndexByOffset(distance);