feat: adjust order to reduce error.

This commit is contained in:
rabbitism
2024-12-17 20:13:29 +08:00
parent 31685cda0f
commit 98a9008044

View File

@@ -127,8 +127,8 @@ public class Marquee : ContentControl
private void TimerOnTick(object sender, System.EventArgs e)
{
var layoutValues = Dispatcher.UIThread.Invoke(GetLayoutValues);
if (Presenter is null) return;
var layoutValues = Dispatcher.UIThread.Invoke(GetLayoutValues);
var location = UpdateLocation(layoutValues);
if (location is null) return;
Dispatcher.UIThread.Post(() =>