[improvement] Picker: stop propagation when touchmove in vertical direction (#4043)
This commit is contained in:
@@ -98,9 +98,13 @@ export default createComponent({
|
||||
},
|
||||
|
||||
onTouchMove(event) {
|
||||
preventDefault(event);
|
||||
this.moving = true;
|
||||
this.touchMove(event);
|
||||
|
||||
if (this.direction === 'vertical') {
|
||||
preventDefault(event, true);
|
||||
}
|
||||
|
||||
this.offset = range(
|
||||
this.startOffset + this.deltaY,
|
||||
-(this.count * this.itemHeight),
|
||||
|
||||
Reference in New Issue
Block a user