fix(web-console): reconcile merged mode interactions

This commit is contained in:
Miayui
2026-09-16 15:15:33 +08:00
parent d74d039044
commit 4a31950023
+3 -4
View File
@@ -6235,11 +6235,8 @@ function installModeChipScroller() {
});
const finishPointerDrag = (event) => {
if (pointerId !== event.pointerId) return;
const finishedPointerId = pointerId;
if (pointerCaptured) group.releasePointerCapture?.(pointerId);
pointerId = null;
if (pointerCaptured && group.hasPointerCapture?.(finishedPointerId)) {
group.releasePointerCapture(finishedPointerId);
}
pointerCaptured = false;
group.classList.remove("is-dragging");
if (dragged) {
@@ -6930,7 +6927,9 @@ function applyModeCommand(command, modeProfileId = null) {
showToast("上一条指令仍在执行,请稍候");
return false;
}
if (typeof hideModeActionPopover === "function") {
hideModeActionPopover({ immediate: true });
}
const mode = modeProfiles().find((item) => item.id === modeProfileId);
setModeRailSelection(mode);
closeModeGallery({ restoreFocus: false });