diff --git a/src/AppLayout/index.tsx b/src/AppLayout/index.tsx index a67fa03..fe2a3e5 100644 --- a/src/AppLayout/index.tsx +++ b/src/AppLayout/index.tsx @@ -172,8 +172,6 @@ const MyPage = ({ children: ComponentChildren; }) => { const [prevSubjectName, setPrevSubjectName] = useState(null); - const calMinTimeoutRef = useRef | null>(null); - const calMaxTimeoutRef = useRef | null>(null); const leftSurfaces = visualState.meshes.filter((mesh) => mesh.name.startsWith("lh."), @@ -198,23 +196,11 @@ const MyPage = ({ }; const onCalMinChanged = (_e: any, value: number) => { - if (calMinTimeoutRef.current !== null) { - clearTimeout(calMinTimeoutRef.current); - } - calMinTimeoutRef.current = setTimeout(() => { - calMinTimeoutRef.current = null; - changeCalMin(value); - }, 500); + changeCalMin(value); }; const onCalMaxChanged = (_e: any, value: number) => { - if (calMaxTimeoutRef.current !== null) { - clearTimeout(calMaxTimeoutRef.current); - } - calMaxTimeoutRef.current = setTimeout(() => { - calMaxTimeoutRef.current = null; - changeCalMax(value); - }, 500); + changeCalMax(value); }; const changeCalMin = (value: number) => { @@ -350,14 +336,14 @@ const MyPage = ({ cal_min cal_max