Skip to content

Commit 5bb316b

Browse files
i8wugitim
authored andcommitted
Stop autoScroll if scroll disabled
1 parent fd9ec36 commit 5bb316b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SortableList.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ export default class SortableList extends Component {
538538
this._movingDirectionChanged = prevMovingDirection !== this._movingDirection;
539539
this._setOrderOnMove();
540540

541-
this._scrollOnMove(e);
541+
if (this.props.scrollEnabled) {
542+
this._scrollOnMove(e);
543+
}
542544
};
543545

544546
_onScroll = ({nativeEvent: {contentOffset}}) => {

0 commit comments

Comments
 (0)