fix more rect selection bugs
This commit is contained in:
@@ -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="
|
||||
|
||||
Reference in New Issue
Block a user