Add comment in accessibility pass (#704)

This commit is contained in:
Olivier FAURE 2024-10-21 14:23:18 +02:00 committed by GitHub
parent ed5c141701
commit 6f111233d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ fn build_access_node(widget: &mut dyn Widget, ctx: &mut AccessCtx) -> NodeBuilde
.collect::<Vec<NodeId>>(),
);
// Note - These WidgetState flags can be modified by other passes.
// When that happens, the other pass should set flags to request an accessibility pass.
if ctx.is_hovered() {
node.set_hovered();
}