From 08466eabb9120a1b01df80d3850a8f8a88b93f91 Mon Sep 17 00:00:00 2001 From: Z_eks Date: Thu, 21 Mar 2019 19:07:52 +0800 Subject: [PATCH] =?UTF-8?q?[bugfix]=20Swipe:=20=E4=BF=AE=E6=94=B9=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E6=A8=A1=E7=B3=8A=E9=97=AE=E9=A2=98=20(#3030)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/swipe/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {