diff --git a/Espera.View/DragDropExtension.cs b/Espera.View/DragDropExtension.cs index 8ac6ee6a..82a69643 100644 --- a/Espera.View/DragDropExtension.cs +++ b/Espera.View/DragDropExtension.cs @@ -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; @@ -160,4 +160,4 @@ private static void Unsubscribe(FrameworkElement container) #endregion ScrollOnDragDropProperty } -} \ No newline at end of file +}