linebender/druid

`request_anim_frame()` prevents redrawing in multi-window

Open

#2.339 aberto em 17 de jan. de 2023

Ver no GitHub
 (9 comments) (0 reactions) (0 assignees)Rust (567 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (9.091 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I have a custom widget that has an animation. After opening two windows with it inside, I found only the focused one was redrawn. The other ones won't redraw even if there's a data change. After deleting request_anim_frame(), it would redraw if there's a data change, but as a result, it's impossible for me to update my animation. Why would this happen? Is multi-window simply just doesn't supports animation or are there any options for me to enable it?

image

Guia do colaborador