Skip to content

Commit

Permalink
Merge pull request #393 from didiboji/szq1
Browse files Browse the repository at this point in the history
fix(DragDrawer): 修改下拉到底后下拉框会向上弹到顶部的问题 #384
  • Loading branch information
ChenlingasMx authored Sep 16, 2022
2 parents 09dc547 + 6d4b9d6 commit bb86e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/DragDrawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function DragDrawer(props: DragDrawerProps) {
listener: () => {
let values = DEVICE_HEIGHT - 30 - gestureState.moveY;
setViewHeight(values);
animatedViewHeight.setValue(values);
animatedViewHeight.setValue(values > 50 ? values : 50);
},
useNativeDriver: false,
}, // 可选的异步监听函数
Expand Down

0 comments on commit bb86e1f

Please sign in to comment.