diff options
-rw-r--r-- | Juick/Classes/ScrollViewerMonitor.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Juick/Classes/ScrollViewerMonitor.cs b/Juick/Classes/ScrollViewerMonitor.cs index a985360..4e96797 100644 --- a/Juick/Classes/ScrollViewerMonitor.cs +++ b/Juick/Classes/ScrollViewerMonitor.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Data; @@ -46,7 +47,7 @@ namespace Juick.Classes var listener = new DependencyPropertyListener(); listener.Changed += (s, eArgs) => { - var atBottom = scrollViewer.VerticalOffset >= scrollViewer.ScrollableHeight; + var atBottom = scrollViewer.VerticalOffset >= scrollViewer.ScrollableHeight - scrollViewer.ScrollableHeight/3; if (atBottom) { var atEnd = GetAtEndCommand(element); |