fix(ui): defer actions until mouse release

Run Album Info confirmation and cancellation on mouseup, and remove the duplicate mousedown close action from Media Viewer.
This commit is contained in:
julyx10
2026-09-05 21:37:40 +08:00
parent c748db0950
commit 3a7e26fbfd
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -129,7 +129,7 @@
<div class="mt-4 flex justify-end space-x-4">
<button
class="t-button-default"
@mousedown.left.stop.prevent="clickCancel"
@mouseup.left.stop.prevent="clickCancel"
@click="!$event.detail && clickCancel()"
>
{{ $t('msgbox.cancel') }}
@@ -137,7 +137,7 @@
<button
class="t-button-primary"
:disabled="inputNameValue.trim().length === 0 || selectedFolder.length === 0"
@mousedown.left.stop.prevent="clickOk"
@mouseup.left.stop.prevent="clickOk"
@click="!$event.detail && clickOk()"
>
{{ $t('msgbox.ok') }}
-1
View File
@@ -229,7 +229,6 @@
/>
<IconClose
class="p-3 w-12 h-10 text-base-content/70 hover:text-base-content hover:bg-red-500 transition-colors duration-300 cursor-pointer"
@mousedown.stop="$emit('close')"
@click.stop="$emit('close')"
/>
</div>