fix(Picker): should reset moving when touch ended (#4283)

This commit is contained in:
neverland 2019-08-29 16:58:53 +08:00 committed by GitHub
parent 009ad60872
commit 81820b31eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,7 @@ export default createComponent({
}
const index = this.getIndexByOffset(this.offset);
this.moving = false;
this.duration = DEFAULT_DURATION;
this.setIndex(index, true);
},