diff --git a/packages/swipe/index.js b/packages/swipe/index.js index 3d015f247..938b5490e 100644 --- a/packages/swipe/index.js +++ b/packages/swipe/index.js @@ -217,7 +217,7 @@ export default sfc({ } } - this.offset = offset - this.active * this.size; + this.offset = Math.round(offset - this.active * this.size); }, swipeTo(index) {