Skip to content
Snippets Groups Projects
Unverified Commit 6e5a2f85 authored by GyDi's avatar GyDi
Browse files

fix: disable auto scroll to proxy

parent e66a8920
No related branches found
No related tags found
No related merge requests found
......@@ -115,14 +115,14 @@ const ProxyGroup = ({ group }: Props) => {
}
}, [headState.open, sortedProxies]);
// auto scroll when sorted changed
const timerRef = useRef<any>();
useEffect(() => {
if (headState.open) {
clearTimeout(timerRef.current);
timerRef.current = setTimeout(() => onLocation(false), 500);
}
}, [headState.open, sortedProxies]);
// // auto scroll when sorted changed
// const timerRef = useRef<any>();
// useEffect(() => {
// if (headState.open) {
// clearTimeout(timerRef.current);
// timerRef.current = setTimeout(() => onLocation(false), 500);
// }
// }, [headState.open, sortedProxies]);
return (
<>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment