From 15046888d9b612d29b346a16de7881cdcf5b0810 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 27 Jul 2019 10:24:51 +0800 Subject: [PATCH] [bugfix] SwipeCell: should not prevent touchmove when opened (#3982) --- src/swipe-cell/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/swipe-cell/index.js b/src/swipe-cell/index.js index a22487dd2..463d4ef43 100644 --- a/src/swipe-cell/index.js +++ b/src/swipe-cell/index.js @@ -122,7 +122,12 @@ export default createComponent({ this.touchMove(event); if (this.direction === 'horizontal') { - preventDefault(event, this.stopPropagation); + const shouldPrevent = !this.opened || this.deltaX * this.startOffset < 0; + + if (shouldPrevent) { + preventDefault(event, this.stopPropagation); + } + this.swipeMove(this.deltaX + this.startOffset); } },