From dec32c8e1fc2ee6eece1330300f6690389a0898d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 24 Feb 2017 15:43:43 +0100 Subject: Autoscroll to the end of the conversation --- components/package/contents/ui/SingleMailView.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'components/package/contents') 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 { boundsBehavior: Flickable.StopAtBounds + //Always scroll to the end of the conversation + highlightFollowsCurrentItem: true + //Scroll quickly + highlightMoveDuration: 1 + onCountChanged: { + //TODO: ideally we should only do this initially, not when new messages enter while you're reading. + currentIndex = count - 1; + } + //Intercept all scroll events, //necessary due to the webengineview KubeFramework.MouseProxy { -- cgit v1.2.3