Skip to content

Commit

Permalink
fix: style type of ScrollHtml (#1521)
Browse files Browse the repository at this point in the history
  • Loading branch information
WooWan authored Jun 18, 2023
1 parent 86ae771 commit 64abb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/ScrollControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const ScrollCanvas = React.forwardRef(({ children }, ref) => {
})

const ScrollHtml = React.forwardRef(
({ children, style, ...props }: { children?: React.ReactNode; style?: React.StyleHTMLAttributes<any> }, ref) => {
({ children, style, ...props }: { children?: React.ReactNode; style?: React.CSSProperties }, ref) => {
const state = useScroll()
const group = React.useRef<HTMLDivElement>(null!)
const { width, height } = useThree((state) => state.size)
Expand Down

1 comment on commit 64abb7d

@vercel
Copy link

@vercel vercel bot commented on 64abb7d Jun 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.