fix: disable auto scroll to proxy
This commit is contained in:
parent
e66a89208d
commit
6e5a2f85a1
@ -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 (
|
||||
<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user