Skip to content

Commit

Permalink
fix(swipe-cell): 修复收回单元格时存在卡顿的问题(#1167)
Browse files Browse the repository at this point in the history
fix(swipe-cell): 修复收回单元格时存在卡顿的问题

fix #1167
  • Loading branch information
Lyan-u committed Jan 15, 2024
1 parent 36fb404 commit 87e6b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swipe-cell/swipe-cell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default defineComponent({
}
preventDefault(e, false);
if (props.disabled || Math.abs(lengthX.value) < distance) {
if (props.disabled || (!initData.moved && Math.abs(lengthX.value) < distance)) {
return;
}
Expand Down

0 comments on commit 87e6b02

Please # to comment.