Skip to content

Commit 306f578

Browse files
committed
fix eCollect#8 : incorrect behaviour when borders are applied
1 parent 40eff4c commit 306f578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/SwipeOut.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
_distanceSwiped() {
135135
const contentRect = this.$refs.content.getBoundingClientRect();
136136
const elementRect = this.$el.getBoundingClientRect();
137-
return contentRect.left - elementRect.left;
137+
return contentRect.left - elementRect.left - this.$el.clientLeft;
138138
},
139139
_startListener(event) {
140140
if (this.disabled)

0 commit comments

Comments
 (0)