mirror of
https://github.com/youzan/vant.git
synced 2026-03-19 02:00:50 +08:00
fix(Swipe): can't disable loop in some cases (#7208)
This commit is contained in:
@@ -167,8 +167,8 @@ export default createComponent({
|
||||
this.rect = rect;
|
||||
this.swiping = true;
|
||||
this.active = active;
|
||||
this.computedWidth = Math.round(+this.width || rect.width);
|
||||
this.computedHeight = Math.round(+this.height || rect.height);
|
||||
this.computedWidth = Math.floor(+this.width || rect.width);
|
||||
this.computedHeight = Math.floor(+this.height || rect.height);
|
||||
this.offset = this.getTargetOffset(active);
|
||||
this.children.forEach((swipe) => {
|
||||
swipe.offset = 0;
|
||||
|
||||
Reference in New Issue
Block a user