From b3b5350c6fc7902b5a86e401e41a3b5da0a6bf0c Mon Sep 17 00:00:00 2001 From: hdx Date: Fri, 22 Sep 2023 17:26:55 +0800 Subject: [PATCH] swiper-list2: TODO 0.0 != 0 --- pages/template/swiper-list2/swiper-list2.uvue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/template/swiper-list2/swiper-list2.uvue b/pages/template/swiper-list2/swiper-list2.uvue index 4c4c7b27..83d7febb 100644 --- a/pages/template/swiper-list2/swiper-list2.uvue +++ b/pages/template/swiper-list2/swiper-list2.uvue @@ -98,7 +98,8 @@ } }, updateTabIndicator(current_index : number, move_to_index : number, percentage : number) { - if (percentage == 0) { + // TODO 0.0 != 0 + if (percentage.toInt() == 0) { return } -- GitLab