feat(Picker): improve scroll speed (#5951)
This commit is contained in:
@@ -236,7 +236,7 @@ export default createComponent({
|
||||
momentum(distance, duration) {
|
||||
const speed = Math.abs(distance / duration);
|
||||
|
||||
distance = this.offset + (speed / 0.002) * (distance < 0 ? -1 : 1);
|
||||
distance = this.offset + (speed / 0.003) * (distance < 0 ? -1 : 1);
|
||||
|
||||
const index = this.getIndexByOffset(distance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user