mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-01 02:52:49 +08:00
Independent review of 16e25ea (DeepSeek v4.1 Flash, Qwen4 Max) found the runtime avoidance could flap, park on protected controls and drift from the CSS on notched phones. Runtime only; still no skin.css restriction. - Anti-flap: a move needs the collision to persist ~250 ms, moves are at least 1 s apart, and more than 6 moves in 10 s park the control at its default corner for 10 s (an animated/hostile skin can no longer keep it moving). - Protected parts now outweigh dialogs and the other host control; ordinary buttons inside the protected `app` root (or `home.footer`) are no longer weighted as protected. - Never move onto the last pointer position or the focused control. - Fold to the compact mark only when that frees at least one control (a full-screen click-away layer no longer hides the recovery buttons). - Score with the live expanded size (language switch) and reset on resize; model margins include env(safe-area-inset-*) like the CSS. - Skip invisible (opacity 0) controls; also count [tabindex], option/switch/ checkbox/radio roles, iframes and media controls; count the other host control once; prefilter by candidate rects (cheap on 3 000-control skins); re-check after scrolls; ignore sticky :hover on touch; bind idempotently. - Tests: weights, fold threshold, pointer, safe area, protected-vs-dialog, stability over repeated ticks, two host controls, anti-flap.