From 9fce86f59efcdbf23705cdfdf891460ac7f74346 Mon Sep 17 00:00:00 2001 From: undefined303 <54739035+undefined303@users.noreply.github.com> Date: Sat, 14 Dec 2024 17:28:38 +0800 Subject: [PATCH] fix: set list width to 0 when resetting fix #643 --- src/js/render.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/render.js b/src/js/render.js index c320b21f..8d605a01 100644 --- a/src/js/render.js +++ b/src/js/render.js @@ -187,9 +187,11 @@ export default { list.innerHTML = ''; removeClass(list, CLASS_TRANSITION); - setStyle(list, getTransforms({ + setStyle(list, assign({ + width: 0, + }, getTransforms({ translateX: 0, - })); + }))); }, initImage(done) {