linebender/druid

`request_anim_frame()` prevents redrawing in multi-window

開放

#2,339 建立於 2023年1月17日

 (9 則留言) (0 個反應) (0 位負責人)Rust (567 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (9,091 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南