From a8214080fd332546452d3c66813f139caac14c56 Mon Sep 17 00:00:00 2001 From: hdx Date: Fri, 22 Sep 2023 18:46:16 +0800 Subject: [PATCH] swiper-list2: TODO 0.0 != 0 --- pages/template/swiper-list2/swiper-list2.uvue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/template/swiper-list2/swiper-list2.uvue b/pages/template/swiper-list2/swiper-list2.uvue index 83d7febb..18b82f54 100644 --- a/pages/template/swiper-list2/swiper-list2.uvue +++ b/pages/template/swiper-list2/swiper-list2.uvue @@ -99,7 +99,7 @@ }, updateTabIndicator(current_index : number, move_to_index : number, percentage : number) { // TODO 0.0 != 0 - if (percentage.toInt() == 0) { + if (percentage.toDouble() == 0.0) { return } -- GitLab