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

Commit

Permalink
Fixed bug on pull to refresh activation 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
chicio committed Nov 16, 2019
1 parent 3d6006d commit 2cdb0ef
Showing 5 changed files with 470 additions and 472 deletions.
6 changes: 2 additions & 4 deletions _drafts/2019-10-31-pull-to-refresh-web.md
Original file line number Diff line number Diff line change
@@ -210,10 +210,8 @@ const pullToRefresh = (trackingCategory) => {
setRefreshingStatus()
sendMessageToServiceWorker({ message: 'refresh', url: window.location.href, clientId: getTrackingClientId(), trackingCategory }).then(() => {
pullToRefreshStatusRepository.completeRefresh()
setTimeout(() => {
setRefreshStatusCompleted()
closePullToRefresh()
}, 1500)
setRefreshStatusCompleted()
closePullToRefresh()
})
} else {
dragUpdate(yAbsoluteMovement - pullToRefreshElementHeight, yAbsoluteMovement / pullToRefreshElementHeight)
Loading

0 comments on commit 2cdb0ef

Please sign in to comment.