fix(web-console): reconcile merged mode interactions
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user