Skip to content

Commit da2a34d

Browse files
committed
Fix scroll bug
1 parent cbf1033 commit da2a34d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DraggablePanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const DraggablePanel = React.forwardRef((props: Props, ref) => {
5151
const show = () => {
5252
if (!animating) {
5353
animatedValue.setValue(0);
54+
setInnerContentHeight(Math.min(props.height, DEFAULT_PANEL_HEIGHT));
5455
setAnimating(true);
5556
togglePopupVisibility(true);
5657
Animated.timing(animatedValue, {

0 commit comments

Comments
 (0)