Skip to content

Commit

Permalink
Only align graph for 2 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Oct 17, 2024
1 parent 660d28e commit e9d4921
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h1>Following Graph</h1>

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

@if (selectedUser is null)
{
Expand Down Expand Up @@ -76,7 +76,7 @@
{
await GraphEditor.ForceDirectedLayout();
double unixTimeSeconds = DateTimeOffset.Now.ToUnixTimeMilliseconds() / 1000.0;
if (unixTimeSeconds - startUnixTimeSeconds < 7)
if (unixTimeSeconds - startUnixTimeSeconds < 2)
{
GraphEditor.SVGEditor.FitViewportToAllShapes(delta: Math.Min((unixTimeSeconds - prevUnixTimeSeconds) * 2, 1), padding: 100);
prevUnixTimeSeconds = unixTimeSeconds;
Expand Down

0 comments on commit e9d4921

Please sign in to comment.