Files
egui/crates
Emil Ernerfeldt c9849e9393 Web: don't scroll host page when text agent or canvas grabs focus
Focus the text agent and canvas with `preventScroll: true`, replace the
`autofocus` attribute with an explicit focus call (the autofocus
insertion path always scrolls the element into view and cannot be
prevented), and park the hidden text agent input at the canvas origin
instead of (0,0) of the page.

Fixes https://github.com/emilk/egui/issues/8295

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 18:17:19 -07:00
..