Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,15 @@ class SortableListView extends React.Component {
}

handleContentSizeChange = (width, height) => {
this.scrollContainerHeight = height
}
this.scrollContainerHeight = height;

// NOTE: Need to recalcuate the scrollView height when items are drag-and-hold beyond the
// length of the list and back into it. Without this checkTargetElement uses the old
// cache verison the height of the scrollView creating a gap.
if (this.scrollValue > 0) {
this.scrollTo({ y: height, animated: !this.props.disableAnimatedScrolling });
}
};

scrollAnimation = () => {
if (this.state.active) {
Expand Down