mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
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:
1 parent
2b019d82ff
commit
99d7b86d09
6 files changed
+87
-12
No files matched your search
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user