HackerTrans
トップ新着トレンドコメント過去質問紹介求人

jgoertler

no profile record

コメント

jgoertler
·2 年前·議論
I’m currently on mobile, where I couldn’t reproduce this.

I agree, that shouldn’t happen and it might be a bug, because the input is handled after drawing the initial frame and should be clamped before starting to draw the next frame. Drag events are tricky though, because they come with a frame delay by default (you have to recognize the drag).

Does this reproduce reliably on desktop? If so then I can create an issue for this.
jgoertler
·2 年前·議論
You can instruct egui to discard a frame. That way you can perform this two phase layout across two frames without showing an unfinished UI.

This mechanism can get you there most of the time.