diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-24 15:43:43 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-24 15:43:43 +0100 |
commit | dec32c8e1fc2ee6eece1330300f6690389a0898d (patch) | |
tree | 58d0095ef6da104be654dc07102c78d67bb084f4 | |
parent | 08b857c641d3a62f00b2b7fcbfa1fd51773d170c (diff) | |
download | kube-dec32c8e1fc2ee6eece1330300f6690389a0898d.tar.gz kube-dec32c8e1fc2ee6eece1330300f6690389a0898d.zip |
Autoscroll to the end of the conversation
-rw-r--r-- | components/package/contents/ui/SingleMailView.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index 8731e270..3c76928f 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml | |||
@@ -64,6 +64,15 @@ Rectangle { | |||
64 | 64 | ||
65 | boundsBehavior: Flickable.StopAtBounds | 65 | boundsBehavior: Flickable.StopAtBounds |
66 | 66 | ||
67 | //Always scroll to the end of the conversation | ||
68 | highlightFollowsCurrentItem: true | ||
69 | //Scroll quickly | ||
70 | highlightMoveDuration: 1 | ||
71 | onCountChanged: { | ||
72 | //TODO: ideally we should only do this initially, not when new messages enter while you're reading. | ||
73 | currentIndex = count - 1; | ||
74 | } | ||
75 | |||
67 | //Intercept all scroll events, | 76 | //Intercept all scroll events, |
68 | //necessary due to the webengineview | 77 | //necessary due to the webengineview |
69 | KubeFramework.MouseProxy { | 78 | KubeFramework.MouseProxy { |