Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 2cdb0ef

Browse files
committed
Fixed bug on pull to refresh activation 🚀
1 parent 3d6006d commit 2cdb0ef

File tree

5 files changed

+470
-472
lines changed

5 files changed

+470
-472
lines changed

_drafts/2019-10-31-pull-to-refresh-web.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,8 @@ const pullToRefresh = (trackingCategory) => {
210210
setRefreshingStatus()
211211
sendMessageToServiceWorker({ message: 'refresh', url: window.location.href, clientId: getTrackingClientId(), trackingCategory }).then(() => {
212212
pullToRefreshStatusRepository.completeRefresh()
213-
setTimeout(() => {
214-
setRefreshStatusCompleted()
215-
closePullToRefresh()
216-
}, 1500)
213+
setRefreshStatusCompleted()
214+
closePullToRefresh()
217215
})
218216
} else {
219217
dragUpdate(yAbsoluteMovement - pullToRefreshElementHeight, yAbsoluteMovement / pullToRefreshElementHeight)

0 commit comments

Comments
 (0)