Refactor: sidebar drag
This commit is contained in:
parent
368701610f
commit
28103c901d
@ -53,7 +53,7 @@ function useHotKey() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function useDragSideBar() {
|
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 config = useAppConfig();
|
||||||
const startX = useRef(0);
|
const startX = useRef(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user