From 64abb7d0deaa7813b9fa2444d369d47be55468b9 Mon Sep 17 00:00:00 2001 From: WooWan <47740690+WooWan@users.noreply.github.com> Date: Mon, 19 Jun 2023 05:50:00 +0900 Subject: [PATCH] fix: style type of ScrollHtml (#1521) --- src/web/ScrollControls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/ScrollControls.tsx b/src/web/ScrollControls.tsx index 93f214109..460dde392 100644 --- a/src/web/ScrollControls.tsx +++ b/src/web/ScrollControls.tsx @@ -221,7 +221,7 @@ const ScrollCanvas = React.forwardRef(({ children }, ref) => { }) const ScrollHtml = React.forwardRef( - ({ children, style, ...props }: { children?: React.ReactNode; style?: React.StyleHTMLAttributes }, ref) => { + ({ children, style, ...props }: { children?: React.ReactNode; style?: React.CSSProperties }, ref) => { const state = useScroll() const group = React.useRef(null!) const { width, height } = useThree((state) => state.size)