fix more rect selection bugs

This commit is contained in:
2025-09-04 21:03:19 +02:00
parent afcbadee8b
commit 13e91fdfbf
5 changed files with 30 additions and 35 deletions

View File

@@ -22,8 +22,6 @@ const dropZone = useDropZone(dropZoneRef, {
multiple: true,
});
const selectionRect = useSelectionRect();
if (warrenStore.current == null) {
await navigateTo({
path: '/warrens',
@@ -159,19 +157,10 @@ async function onEntryDelete(entry: DirectoryEntry, force: boolean) {
function onBack() {
warrenStore.backCurrentPath();
}
function onParentClick(_e: MouseEvent) {
if (selectionRect.dirty) {
selectionRect.dirty = false;
return;
}
warrenStore.clearSelection();
}
</script>
<template>
<div ref="dropZoneRef" class="grow" @click="onParentClick">
<div ref="dropZoneRef" class="grow">
<DirectoryListContextMenu class="w-full grow">
<DirectoryList
v-if="