Refactor: sidebar drag

This commit is contained in:
yhua1998 2023-09-13 16:24:21 +08:00 committed by GitHub
parent 368701610f
commit 28103c901d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ function useHotKey() {
}
function useDragSideBar() {
const limit = useCallback((x: number) => Math.min(MAX_SIDEBAR_WIDTH, x));
const limit = (x: number) => Math.min(MAX_SIDEBAR_WIDTH, x);
const config = useAppConfig();
const startX = useRef(0);