Skip to content

Commit 5d8ca70

Browse files
committed
Little fix
1 parent 51ccfad commit 5d8ca70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-native-sortables/src/providers/shared/AutoScrollProvider/AutoScrollProvider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function AutoScrollUpdater({
220220
ctx.targetScrollOffset + distance,
221221
ctx.sortableOffset + bounds[0] - maxOverscroll[0]
222222
);
223-
}
223+
} else return;
224224

225225
if (Math.abs(newScrollOffset - ctx.targetScrollOffset) < 1) {
226226
return;
@@ -269,6 +269,7 @@ function AutoScrollUpdater({
269269

270270
const distance = velocity * (cappedElapsedTime / 1000);
271271

272+
console.log('frameCallbackFunction', distance, ctx.progress);
272273
scrollBy(distance, animateScrollTo);
273274
},
274275
[

0 commit comments

Comments
 (0)