Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Espera.View/DragDropExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static void OnContainerPreviewDragOver(object sender, DragEventArgs e)
// restrict to scroll at two places at a time (how would that go anyways) but only syncs
// them in time.... that's fair enough; (300ms for ListBox, 20ms for Content)
TimeSpan span = DateTime.UtcNow - s_lastTime;
if (span.Milliseconds < (itemwise ? 300 : 20))
if (span.TotalMilliseconds < (itemwise ? 300 : 20))
return;
s_lastTime = DateTime.UtcNow;

Expand Down Expand Up @@ -160,4 +160,4 @@ private static void Unsubscribe(FrameworkElement container)

#endregion ScrollOnDragDropProperty
}
}
}