Skip to content

Commit e9d4921

Browse files
Only align graph for 2 seconds.
1 parent 660d28e commit e9d4921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/KristofferStrube.Blazor.GraphEditor.WasmExample/Pages/FollowingGraph.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h1>Following Graph</h1>
1010

1111
<p>
12-
The following shows a following graph for @@kristofferstrube@@hachyderm.io<br />
12+
The following shows a following graph from Mastodon for the user <b>@@kristofferstrube@@hachyderm.io</b><br />
1313

1414
@if (selectedUser is null)
1515
{
@@ -76,7 +76,7 @@
7676
{
7777
await GraphEditor.ForceDirectedLayout();
7878
double unixTimeSeconds = DateTimeOffset.Now.ToUnixTimeMilliseconds() / 1000.0;
79-
if (unixTimeSeconds - startUnixTimeSeconds < 7)
79+
if (unixTimeSeconds - startUnixTimeSeconds < 2)
8080
{
8181
GraphEditor.SVGEditor.FitViewportToAllShapes(delta: Math.Min((unixTimeSeconds - prevUnixTimeSeconds) * 2, 1), padding: 100);
8282
prevUnixTimeSeconds = unixTimeSeconds;

0 commit comments

Comments
 (0)