Skip to content

Commit a6fd2f1

Browse files
committed
Increase debounce to 0.3s to allow scrolling on slower devices.
1 parent 3981b01 commit a6fd2f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Stats v4/StoreStatsAndTopPerformersViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ final class StoreStatsAndTopPerformersViewController: ButtonBarPagerTabStripView
132132
.removeDuplicates()
133133
// Tapping to change to a farther tab could result in `updateIndicator` callback to be triggered for the middle tabs.
134134
// A short debounce workaround is applied here to avoid making API requests for the middle tabs.
135-
.debounce(for: .seconds(0.1), scheduler: DispatchQueue.main)
135+
.debounce(for: .seconds(0.3), scheduler: DispatchQueue.main)
136136
.sink { [weak self] timeRangeTabIndex in
137137
guard let self = self else { return }
138138
guard let periodViewController = self.viewControllers[timeRangeTabIndex] as? StoreStatsAndTopPerformersPeriodViewController else {

0 commit comments

Comments
 (0)