Skip to content

Commit a9a8f9f

Browse files
committed
修正手误 if (bounces && overshootHorizontal())
1 parent e6c573c commit a9a8f9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/android/src/main/java/com/bolan9999/SpringScrollView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void onInnerEnd(SpringAnimator animation, float v) {
6565
onVerticalAnimationEnd();
6666
}
6767
} else {
68-
if (bounces && overshootHead()) {
68+
if (bounces && overshootHorizontal()) {
6969
horizontalAnimation.startOuter(contentOffset.x, v, 0.9f);
7070
} else {
7171
onHorizontalAnimationEnd();

src/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-spring-scrollview",
3-
"version": "3.0.1-rc.3",
3+
"version": "3.0.1-rc.4",
44
"description": "A cross-platform (iOS & Android) spring ScrollView",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)