mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
feat(voice): render the pointer reticle beside the voice control
PointerReticle keeps the turn's timers and tool tracking and presents where the user pointed to the gev-pointer-reticle store, one entry per reticle; the command dock teleports each to the body with the same class, aria-hidden, hidden state, target and position. The voice QA reads the card and reticle after Vue's flush, and the application guide says leaving out the command dock leaves out the voice control and its reticle.
This commit is contained in:
1 parent
f9bf782b9c
commit
0926cbc105
11 files changed
+215
-78
No files matched your search
@@ -1023,7 +1023,7 @@ async function runDeixisBehavior(page, run, settle) {
|
||||
};
|
||||
const beginAt = (x, y, said = null) =>
|
||||
page.evaluate(
|
||||
(px, py, text) => {
|
||||
async (px, py, text) => {
|
||||
const voice = window.__gevVoiceCommands;
|
||||
if (text) {
|
||||
// What the session emits for a spoken turn: a new turn, then the caption.
|
||||
@@ -1043,6 +1043,8 @@ async function runDeixisBehavior(page, run, settle) {
|
||||
voice.pointer.hold('keydown');
|
||||
const snapshot = voice.beginPointerTurn('keydown');
|
||||
voice.pointer.releaseHold();
|
||||
// The voice card and the reticle render on Vue's next flush.
|
||||
await Promise.resolve();
|
||||
const chip = document.getElementById('gev-voice-card-pointer');
|
||||
const reticle = document.querySelector('.gev-pointer-reticle');
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user