Skip to content

Commit

Permalink
fix(ViewportProvider): also fire scroll events on trailing end to alw…
Browse files Browse the repository at this point in the history
…ays have the latest state
  • Loading branch information
garthenweb committed Sep 23, 2018
1 parent 8f57de1 commit a9bd1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ViewportProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ export default class ViewportProvider extends React.PureComponent {

this.componentMightHaveUpdated = true;
},
16,
(1 / 60) * 1000,
{
leading: true,
trailing: false,
trailing: true,
},
);

Expand Down

0 comments on commit a9bd1af

Please sign in to comment.