Skip to content

Commit 5ff7ba7

Browse files
committed
refactor: simplify handleOnScrollChange function in App component
- Updated the handleOnScrollChange function to remove unnecessary parameters, enhancing code clarity and maintainability.
1 parent 4b08938 commit 5ff7ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function App() {
4747
setShowSettingsModal(false);
4848
};
4949

50-
const handleOnScrollChange = (scrollX: number, scrollY: number) => {
50+
const handleOnScrollChange = () => {
5151
lockEmbeddables(excalidrawAPI?.getAppState());
5252
};
5353

0 commit comments

Comments
 (0)