Fix nav bar not saving reset value on dbl click

This commit is contained in:
rijkvanzanten
2022-03-17 18:20:24 -04:00
parent 69280c8ecf
commit 9b685c815e

View File

@@ -118,6 +118,7 @@ useEventListener(window, 'pointermove', onPointerMove);
useEventListener(window, 'pointerup', onPointerUp);
const { data } = useLocalStorage('module-nav-width');
onMounted(() => {
if (!data.value) return;
if (Number.isNaN(data.value)) return;
@@ -202,6 +203,7 @@ function useModuleNavResize() {
}
function resetModuleNavWidth() {
currentWidth.value = 220;
moduleNavEl.value!.style.width = `220px`;
}