fix: re-place floating host controls promptly on screen changes

Return to the default corner once it and the current spot are free, and
skip the move confirmation/minimum interval for ~1.5 s after the home <->
voice page switch or a skin switch, so a spot picked for the previous
screen no longer covers controls on the next one (e.g. Export identity).
This commit is contained in:
OddTurtleHead committed 2026-11-15 23:04:31 +08:00
1 parent 2b019d82ff
commit 99d7b86d09
6 files changed
+87 -12

No files matched your search

+6
View File
@@ -393,6 +393,12 @@ watch([slotConfig, hostChromeActiveSkinId], () => {
syncSlotBinding();
});
}, { flush: "post" });
// Home <-> voice page and skin switches replace the controls the floating
// capsule was avoiding; re-place it promptly (and back to its default corner
// when that is free) instead of leaving it where the previous screen needed it.
watch([() => props.connected, hostChromeActiveSkinId], () => {
void nextTick(() => floatingAvoidance?.screenChanged());
}, { flush: "post" });
watch(thirdPartyAllowed, allowed => { if (!allowed) shortcutOpen.value = false; });
onMounted(() => {