Bug 388440 - scrolling in KMail: "page down" only works once
Summary: scrolling in KMail: "page down" only works once
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: Git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-01 22:38 UTC by Christian Boltz
Modified: 2018-11-19 11:50 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Boltz 2018-01-01 22:38:08 UTC
[initially reported as https://bugzilla.opensuse.org/show_bug.cgi?id=1074271 ]

Since a few days / some openSUSE Tumbleweed snapshots (looking at /var/log/zypp/history, the Qt and KDE updates in 20171223 might be a candidate) I noticed a funny scrolling problem in KMail.

When reading a long mail (for example a Tumbleweed snapshot announcement), I can scroll down with the "page down" key exactly once. Pressing page down again does nothing, even if there's enough text left to scroll down.

If I scroll up again, the "page down" key works again exactly once to scroll to the "second page", and then it stops to work.


I can scroll down with the "down arrow" key (slowly of course) until the end of the mail.

Scrolling with the mouse also works until the end of the mail - both by clicking the scrollbar and by using the mouse wheel.

Oh, and if I scrolled down with the down key or the mouse, pressing "page up" brings me to the beginning of the mail, as if I had only scrolled down by one page. Even more funny - pressing "page down" scrolls up to the second page.


This bug was confirmed by some people on the opensuse-factory mailinglist.

Luca Beltrame also confirmed this bug on the current git master state, therefore I set the version to git instead of 5.7.0 which is currently in Tumbleweed.
Comment 1 Huw 2018-01-01 23:05:02 UTC
(In reply to Christian Boltz from comment #0)

> This bug was confirmed by some people on the opensuse-factory mailinglist.

I'm one of them and I'm also running Tumbleweed.  The symptoms on my system are precisely as described by Christian.
Comment 2 Laurent Montel 2018-01-02 06:01:09 UTC
Git commit ddbdf9b33c6279b0a2ff29a7b67b0044762a258d by Laurent Montel.
Committed on 02/01/2018 at 06:00.
Pushed by mlaurent into branch 'Applications/17.12'.

Fix Bug 388440 - scrolling in KMail: "page down" only works once

FIXED-IN: 5.7.1
document.body.scrollTop was deprecated in removed in last webengine

M  +2    -2    webengineviewer/src/webenginescript.cpp

https://commits.kde.org/messagelib/ddbdf9b33c6279b0a2ff29a7b67b0044762a258d
Comment 3 MartinG 2018-04-06 21:28:19 UTC
I'm having the same problem as described by the initial report. I use KMail 5.7.3 on Fedora 27, so it doesn't seem to be fixed in 5.7.1.

What I see, is that when I use pagedown (PGDOWN), it only works once. I can sometimes manage to get two pages down by using SPACE once, and PGDOWN once. If i use DOWN, and press PGDOWN, the view will skip back to the place it was before I pressed the DOWN.
Comment 4 John Baldwin 2018-06-13 16:06:11 UTC
I am also still seeing this in kmail 5.8.1 on FreeBSD 11.2.  I have the same exact issues from the original report.  Page Down only scrolls down one page (though if you move the cursor some other way then it will scroll down another page), and Page Up acts like Home and jumps to the start of the message.
Comment 5 John Baldwin 2018-06-13 16:07:28 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 Laurent Montel 2018-06-14 05:00:01 UTC
I can't confirm that bug still exists as it works fine here.
Comment 7 Christophe Marin 2018-06-14 06:17:46 UTC
(In reply to MartinG from comment #3)
> I'm having the same problem as described by the initial report. I use KMail
> 5.7.3 on Fedora 27, so it doesn't seem to be fixed in 5.7.1.

I can't reproduce this issue anymore with recent versions, please provide more details.
Comment 8 dzp 2018-06-29 11:56:42 UTC
I can also reproduce this on Debian/Unstable, kmail version 5.7.3.

If you need additional info, feel free to ask.
Comment 9 dzp 2018-07-01 16:26:28 UTC
Some additional infos:
- I use German locales. (An export LANG=C changes nothing.)
- if I change the "Scroll page down" key to something else,
  scrolling seems to work again. Weird.
- "Go to next unread text" (space key) is broken, too.
Comment 10 Till Schäfer 2018-07-11 19:43:19 UTC
I can reproduce this issue with 
- KMail 5.8.2 
- qt 5.11.1 
- frameworks 5.47
on gentoo. 

Page up does always jump to the top and does not scroll one page up. Page down does always jump to the second page (even if i already scrolled further).

The previous mentioned workaround (unmap (set to none) shortcut "Scroll Message Down/Up (more)") works for me.
Comment 11 Till Schäfer 2018-07-16 17:46:38 UTC
This is fixed for me after upgrading to KMail 5.8.3 and frameworks 5.48
Comment 12 Lukáš Turek 2018-10-20 18:48:50 UTC
I hit this bug in Gentoo after updating to Qt 5.11.1 and it disappeared when I rebuilt messagelib.
Comment 13 Wolfgang Bauer 2018-10-24 17:02:22 UTC
(In reply to John Baldwin from comment #4)
> I am also still seeing this in kmail 5.8.1 on FreeBSD 11.2.

That's likely related to bug#397349, the fix checks for the Qt version instead of the QtWebEngine version (and apparently FreeBSD currently has Qt 5.11.2 and QtWebEngine 5.9.4, so the wrong code would be used).

This should fix that problem:
https://phabricator.kde.org/D16398
Comment 14 Wolfgang Bauer 2018-10-24 22:07:13 UTC
Git commit 569c3780a8f18830d7be24b7a7d40b755a2dbc60 by Wolfgang Bauer.
Committed on 24/10/2018 at 22:03.
Pushed by wbauer into branch 'Applications/18.08'.

Check QtWebEngine version instead of Qt's

This code depends on the QtWebEngine (not Qt) version, so it should
actually check for that.

Otherwise it breaks if a distribution ships Qt 5.9 LTS together with a
newer QtWebEngine, like e.g. openSUSE Leap 15.0 does, or QtWebEngine
5.9 together with a newer Qt as is the case in FreeBSD.
Related: bug 397349
FIXED-IN: 18.08.3
Differential Revision: https://phabricator.kde.org/D16398

M  +2    -1    webengineviewer/src/webenginescript.cpp

https://commits.kde.org/messagelib/569c3780a8f18830d7be24b7a7d40b755a2dbc60
Comment 15 Kamil Dudka 2018-11-19 11:50:45 UTC
(In reply to Lukáš Turek from comment #12)
> I hit this bug in Gentoo after updating to Qt 5.11.1 and it disappeared when
> I rebuilt messagelib.

Thank you for sharing the solution!  Rebuilding kde-apps/messagelib on my Gentoo Linux box has fixed the problem for me, too.