Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon committed May 21, 2018
1 parent 311f1cb commit f9ef7a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/state/middleware/auto-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ export default (getMarshal: () => DimensionMarshal) =>

const state: State = store.getState();

// Only want to auto scroll in the dragging phase
// Not allowing auto scrolling while bulk collecting
// This is to avoid a mismatch in scroll between the captured
// viewport in one frame and published in the next
// Also, jump scrolling would not occur during a BULK_COLLECTION
// as no changes to the impact are permitted in that time
// Only allowing auto scrolling in the DRAGGING phase
if (state.phase !== 'DRAGGING') {
return;
}
Expand Down
2 changes: 0 additions & 2 deletions test/unit/state/middleware/auto-scroll.spec.js

This file was deleted.

1 change: 1 addition & 0 deletions test/utils/get-simple-state-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export default (axis?: Axis = vertical) => {

return {
...state,
autoScrollMode: 'JUMP',
scrollJumpRequest: request,
};
};
Expand Down

0 comments on commit f9ef7a1

Please sign in to comment.