diff --git a/src/components/Background.tsx b/src/components/Background.tsx index c2dc951..bcb6b46 100644 --- a/src/components/Background.tsx +++ b/src/components/Background.tsx @@ -16,16 +16,17 @@ const Background = () => { windowHeight.current = window.innerHeight } - const mouseMoveEvent = (e: MouseEvent) => { - const x = e.pageX - windowWidth.current / 2 - const y = e.pageY - windowHeight.current / 2 - // api.start({ x, y }) - } + // const mouseMoveEvent = (e: MouseEvent) => { + // // to be improved for performance + // // const x = e.pageX - windowWidth.current / 2 + // // const y = e.pageY - windowHeight.current / 2 + // // api.start({ x, y }) + // } useEffect(() => { - document.addEventListener("mousemove", mouseMoveEvent) + // document.addEventListener("mousemove", mouseMoveEvent) document.addEventListener("resize", onResizeHandler) return () => { - document.removeEventListener("mousemove", mouseMoveEvent) + // document.removeEventListener("mousemove", mouseMoveEvent) document.removeEventListener("resize", onResizeHandler) } // eslint-disable-next-line diff --git a/src/components/NotebookViewer.tsx b/src/components/NotebookViewer.tsx index dedb964..3bb1679 100644 --- a/src/components/NotebookViewer.tsx +++ b/src/components/NotebookViewer.tsx @@ -13,7 +13,7 @@ export interface NotebookViewerProps { } const splitTextWithCellInfo = ( - text: string + text: string, ): Array<{ cellNumber: number; cellType: string; content: string }> => { const cells: Array<{ cellNumber: number @@ -98,7 +98,7 @@ const NotebookViewer: React.FC = ({ - +