summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-02-01 16:36:05 +0400
committerGravatar Vitaly Takmazov2013-02-01 16:36:05 +0400
commit3879b6fd52395ba47c070b1085d4212f0d376cb4 (patch)
treeb27124f992a72794c7469700d6196c3fa24e8331 /Juick
parent969777d45cd1bb678a32733ca291157f4ec6b924 (diff)
LoadData early than end
Diffstat (limited to 'Juick')
-rw-r--r--Juick/Classes/ScrollViewerMonitor.cs3
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);