Skip to content

Commit 0321ff7

Browse files
committed
fix: style type of ScrollHtml
1 parent 0262410 commit 0321ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/ScrollControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const ScrollCanvas = React.forwardRef(({ children }, ref) => {
221221
})
222222

223223
const ScrollHtml = React.forwardRef(
224-
({ children, style, ...props }: { children?: React.ReactNode; style?: React.StyleHTMLAttributes<any> }, ref) => {
224+
({ children, style, ...props }: { children?: React.ReactNode; style?: React.CSSProperties }, ref) => {
225225
const state = useScroll()
226226
const group = React.useRef<HTMLDivElement>(null!)
227227
const { width, height } = useThree((state) => state.size)

0 commit comments

Comments
 (0)