pxt icon indicating copy to clipboard operation
pxt copied to clipboard

AssetCardList: Flash occurring in editor when switching focus between windows

Open jfo8000 opened this issue 4 years ago • 0 comments

https://github.com/microsoft/pxt/blob/d0ec5d92f120492142330e264cff57ba5d5cb364/webapp/src/components/assetEditor/assetCardList.tsx

The Asset Card List appears to be (causing or participating in?) a major flash of the editor whenever a window resize message is happening.

Recommend using react state variable and changing the state on the AssetEditor component instead of requesting an animation frame. This is more typically how you request a rerender?

I have tabbed away, then tabbed back and the thing running while the screen is black is this:

image image

jfo8000 avatar Jun 24 '21 23:06 jfo8000