Skip to content

Commit

Permalink
fix: style type of ScrollHtml
Browse files Browse the repository at this point in the history
  • Loading branch information
WooWan committed Jun 17, 2023
1 parent 0262410 commit 0321ff7
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

0 comments on commit 0321ff7

Please # to comment.