From a9bd1af6f1946efabc6f0c98aacd236c714b262b Mon Sep 17 00:00:00 2001 From: Jannick Garthen Date: Sun, 23 Sep 2018 16:14:52 +0200 Subject: [PATCH] fix(ViewportProvider): also fire scroll events on trailing end to always have the latest state --- lib/ViewportProvider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ViewportProvider.tsx b/lib/ViewportProvider.tsx index d34ab74..32a1e38 100644 --- a/lib/ViewportProvider.tsx +++ b/lib/ViewportProvider.tsx @@ -211,10 +211,10 @@ export default class ViewportProvider extends React.PureComponent { this.componentMightHaveUpdated = true; }, - 16, + (1 / 60) * 1000, { leading: true, - trailing: false, + trailing: true, }, );