fix(web-console): reconcile merged mode interactions
This commit is contained in:
@@ -6235,11 +6235,8 @@ function installModeChipScroller() {
|
|||||||
});
|
});
|
||||||
const finishPointerDrag = (event) => {
|
const finishPointerDrag = (event) => {
|
||||||
if (pointerId !== event.pointerId) return;
|
if (pointerId !== event.pointerId) return;
|
||||||
const finishedPointerId = pointerId;
|
if (pointerCaptured) group.releasePointerCapture?.(pointerId);
|
||||||
pointerId = null;
|
pointerId = null;
|
||||||
if (pointerCaptured && group.hasPointerCapture?.(finishedPointerId)) {
|
|
||||||
group.releasePointerCapture(finishedPointerId);
|
|
||||||
}
|
|
||||||
pointerCaptured = false;
|
pointerCaptured = false;
|
||||||
group.classList.remove("is-dragging");
|
group.classList.remove("is-dragging");
|
||||||
if (dragged) {
|
if (dragged) {
|
||||||
@@ -6930,7 +6927,9 @@ function applyModeCommand(command, modeProfileId = null) {
|
|||||||
showToast("上一条指令仍在执行,请稍候");
|
showToast("上一条指令仍在执行,请稍候");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (typeof hideModeActionPopover === "function") {
|
||||||
hideModeActionPopover({ immediate: true });
|
hideModeActionPopover({ immediate: true });
|
||||||
|
}
|
||||||
const mode = modeProfiles().find((item) => item.id === modeProfileId);
|
const mode = modeProfiles().find((item) => item.id === modeProfileId);
|
||||||
setModeRailSelection(mode);
|
setModeRailSelection(mode);
|
||||||
closeModeGallery({ restoreFocus: false });
|
closeModeGallery({ restoreFocus: false });
|
||||||
|
|||||||
Reference in New Issue
Block a user