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]);
|
}, [headState.open, sortedProxies]);
|
||||||
|
|
||||||
// auto scroll when sorted changed
|
// // auto scroll when sorted changed
|
||||||
const timerRef = useRef<any>();
|
// const timerRef = useRef<any>();
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
if (headState.open) {
|
// if (headState.open) {
|
||||||
clearTimeout(timerRef.current);
|
// clearTimeout(timerRef.current);
|
||||||
timerRef.current = setTimeout(() => onLocation(false), 500);
|
// timerRef.current = setTimeout(() => onLocation(false), 500);
|
||||||
}
|
// }
|
||||||
}, [headState.open, sortedProxies]);
|
// }, [headState.open, sortedProxies]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user