mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix(skin): repair host recovery compatibility and placement
Align the toolbar example with its first compatible runtime, restore recovery after shortcut focus leaves, and harden observer scheduling, contrast, floating avoidance, and private selector validation.
This commit is contained in:
1 parent
df826f575e
commit
4e8ea3081c
17 files changed
+453
-23
No files matched your search
@@ -126,6 +126,21 @@ test("a move never lands on the pointer or the focused control, but the current
|
||||
assert.equal(stay.position, "top-left");
|
||||
});
|
||||
|
||||
test("an externally excluded current position is scored like every replacement candidate", () => {
|
||||
const pointerAndFocus: FloatingObstacle = { rect: rect(84, 15, 32, 32), weight: FLOATING_WEIGHT_POINTER };
|
||||
const choice = chooseFloatingPosition({
|
||||
current: "bottom-left",
|
||||
currentEligible: false,
|
||||
size: capsule,
|
||||
viewport,
|
||||
margins,
|
||||
obstacles: [],
|
||||
moveObstacles: [pointerAndFocus],
|
||||
positions: ["top-left", "top-right"],
|
||||
});
|
||||
assert.deepEqual(choice, { position: "top-right", score: 0 });
|
||||
});
|
||||
|
||||
test("folding needs to free at least one control; a full-screen click-away layer does not fold the capsule", () => {
|
||||
const backdrop: FloatingObstacle[] = [{ rect: rect(0, 0, 1280, 800), weight: FLOATING_WEIGHT_CONTROL }];
|
||||
const full = chooseFloatingPosition({ current: "bottom-left", size: capsule, viewport, margins, obstacles: backdrop });
|
||||
|
||||
Reference in new issue
Block a user