diff --git a/s2-site/examples/case/data-preview/demo/excel.tsx b/s2-site/examples/case/data-preview/demo/excel.tsx index 9d22dde37a..3a862de717 100644 --- a/s2-site/examples/case/data-preview/demo/excel.tsx +++ b/s2-site/examples/case/data-preview/demo/excel.tsx @@ -76,8 +76,10 @@ const App = ({ data }) => { } }; spreadsheet?.on(S2Event.GLOBAL_SCROLL, handleScroll); + spreadsheet?.on(S2Event.LAYOUT_CELL_SCROLL, handleScroll); return () => { spreadsheet?.off(S2Event.GLOBAL_SCROLL, handleScroll); + spreadsheet?.off(S2Event.LAYOUT_CELL_SCROLL, handleScroll); }; }, []);