Skip to content

Commit 689bec9

Browse files
committed
Fix sliding to the top when adding
1 parent a8dbc67 commit 689bec9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Example/app/widget/AutoDragSortableView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ export default class AutoDragSortableView extends Component{
559559
}
560560

561561
scrollTo = (height, animated = true) => {
562+
this.isHasMeasure = true
562563
// Prevent iOS from sliding when elastically sliding negative numbers
563564
if (this.curScrollData) {
564565
if (this.autoObj.forceScrollStatus < 0 && this.curScrollData.offsetY <= 0) {

lib/AutoDragSortableView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ export default class AutoDragSortableView extends Component{
559559
}
560560

561561
scrollTo = (height, animated = true) => {
562+
this.isHasMeasure = true
562563
// Prevent iOS from sliding when elastically sliding negative numbers
563564
if (this.curScrollData) {
564565
if (this.autoObj.forceScrollStatus < 0 && this.curScrollData.offsetY <= 0) {

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-drag-sort",
3-
"version": "2.3.9",
3+
"version": "2.4.1",
44
"description": "Drag and drop sort control for react-native",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)