Skip to content

Commit 799b85d

Browse files
authored
fix(swipe-cell): 修复收回单元格时存在卡顿的问题(#1167) (#1209)
fix(swipe-cell): 修复收回单元格时存在卡顿的问题 fix #1167
1 parent ab4afa9 commit 799b85d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/swipe-cell/swipe-cell.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export default defineComponent({
204204
}
205205
preventDefault(e, false);
206206
207-
if (props.disabled || Math.abs(lengthX.value) < distance) {
207+
if (props.disabled || (!initData.moved && Math.abs(lengthX.value) < distance)) {
208208
return;
209209
}
210210

0 commit comments

Comments
 (0)