From 938364535b4a7dcde81cbd74a9343ec44102457a Mon Sep 17 00:00:00 2001 From: Vasavi Kanamarlapudi Date: Fri, 19 Jul 2024 14:42:00 +0530 Subject: [PATCH] Digital ACT-191 ONEAPP-7013 story: removed redundant code which causes scrolling issue --- VDS/Components/Carousel/Carousel.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/VDS/Components/Carousel/Carousel.swift b/VDS/Components/Carousel/Carousel.swift index 0cc6d738..b7c0477a 100644 --- a/VDS/Components/Carousel/Carousel.swift +++ b/VDS/Components/Carousel/Carousel.swift @@ -304,12 +304,6 @@ open class Carousel: View { nextButton.onClick = { _ in self.nextButtonClick() } previousButton.onClick = { _ in self.previousButtonClick() } - /// Will be called when the scrubber position changes. - carouselScrollBar.onScrubberDrag = { [weak self] scrubberId in - guard let self else { return } - updateScrollPosition(position: scrubberId, callbackText:"onThumbPositionChange") - } - /// Will be called when the scrollbar thumb move forward. carouselScrollBar.onMoveForward = { [weak self] scrubberId in guard let self else { return }