Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(seeker): only skip the scroll when a sticky element is really on screen

nirholas4ec442b63caa
diff --git a/solana-mobile/scripts/lib/hand.mjs b/solana-mobile/scripts/lib/hand.mjs
index 23d314835..c87801fbd 100644
--- a/solana-mobile/scripts/lib/hand.mjs
+++ b/solana-mobile/scripts/lib/hand.mjs
@@ -380,9 +380,16 @@ export class Hand {
}
return false;
}).catch(() => false);
- if (pinned) return;
const box = await this.page.locator(selector).first().boundingBox();
if (!box) return;
+ /* Declaring sticky is not the same as being stuck. A sticky element only
+ travels within its own parent's box, so one wrapped in a container no
+ taller than itself scrolls off the top like static content, and the
+ site header does exactly that today. Trusting the declaration put the
+ tap at a negative y, off the glass, where it hit nothing. Skip the
+ scroll only when the pinned element is genuinely on screen, which is
+ what the corner companion widget below actually needs. */
+ if (pinned && box.y + box.height > 0 && box.y < this.css.height) return;
const lo = top;
const hi = this.css.height - bottom;
if (box.y >= lo && box.y + box.height <= hi) return;