Bug 116281 - Slow scrolling with keyboard arrow keys in Writer (especially with images)
Summary: Slow scrolling with keyboard arrow keys in Writer (especially with images)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2018-03-07 23:43 UTC by Jeff Fortin Tam
Modified: 2021-03-09 18:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file (334.06 KB, application/vnd.oasis.opendocument.text)
2018-03-11 22:38 UTC, Jeff Fortin Tam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fortin Tam 2018-03-07 23:43:26 UTC
Particularly with long text documents containing images, scrolling performance is much slower when using the keyboard's directional arrow keys (not PageUp/PageDown) than when using the mouse wheel. One side-effect is that if you press and hold for more than a few seconds, when you release the key LibreOffice Writer will keep scrolling for a while until it stopped processing the queue of keypress events.

I posit that the reason why the mousewheel is more performant is that its scroll events are discrete (I don't have one of those analog super-smooth scroll wheels or touchpads, mine just goes "click click click" while you rotate the wheel), whereas pressing and holding the keyboard's arrow keys generates dozens of events per second, flooding LibreOffice with those. The result is that scrolling "feels" slower than it could be if those events were "compressed" to a lower rate.

Of course, in an ideal world any kind of scrolling (including "smooth" scrolling) should be performant and responsive. I'm just saying that I see better scrolling performance with "clicky" mousewheels than the keyboard, and that there could be a possibility of optimizing the keyboard (i.e.: "don't do too much/needless work") to match that kind of performance.
Comment 1 Telesto 2018-03-08 10:40:28 UTC
Sounds a bit similar to bug 112568, bug 94109 or bug 104716
Comment 2 Jean-Baptiste Faure 2018-03-11 11:55:56 UTC
Which LibreOffice version are you using ? 
Please could you check if your problem is the same as bug 112568 ?
If not, please provide a test file with which you encounter the problem you describe.

Set status to NEEDINFO, please set it back to UNCONFIRMED once requested
informations are provided.

Best regards. JBF
Comment 3 Jeff Fortin Tam 2018-03-11 22:38:47 UTC
Created attachment 140573 [details]
sample file

Hi, this is with LibreOffice 5.4.5 on Fedora 27 64-bit, though I've experienced this issue with every version of LibreOffice (and previously OpenOffice) throughout the years.

Attaching a simplified test sample file.

Not the same as bug #112568 as I have no responsiveness issue when typing text in my documents, just that keyboard scrolling is very slow (as described above, with the events "queue" being presumably flooded) compared to mousewheel scrolling. Grab my sample document, press and hold the "down" arrow and you should be able to experience it too.
Comment 4 Buovjaga 2018-03-13 14:13:24 UTC
No problem here with scroll queue or slowness of any kind. Tried also with gtk3.

Arch Linux 64-bit
Version: 6.0.2.1.0+
Build ID: 6.0.2-1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Comment 5 Telesto 2018-03-17 20:10:33 UTC
A few observations (with LibO on Windows)
* The scrolling experience scrolling with the arrow keys is very smooth in read only mode (CPU usage is a bit extreme for my taste) compared to edit mode (so inconsistent) 
* The arrow scrolling speed is also a little inconsistent.. The text scrolls a little faster compared to image (I tested it with a zoom factor 140; only image visible in read only mode)
* The caret might (1:8) move a few lines after release of the arrow key (only 2 or 3) after scrolling 2/3 pages
* The page counter isn't working when holding the arrow key (or using page down/page up key)

Version: 6.1.0.0.alpha0+
Build ID: e5bc7fa4e83b33fc3eee343e560a4f8cb91eacd6
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-03-14_23:37:38
Locale: nl-NL (nl_NL); Calc: CL
Comment 6 subha 2018-04-02 08:06:00 UTC
hi,
Issue occurs in version 6.0.2 windows 7 (32bit).
Change the status as NEW.
Comment 7 QA Administrators 2019-04-03 02:57:15 UTC Comment hidden (obsolete)
Comment 8 Telesto 2021-01-05 10:09:42 UTC
This should probably be gone by now
Comment 9 Telesto 2021-03-09 18:24:35 UTC
Smooth, no issue on Windows
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: dc3b64dcbfb0a49c0be65bd8d73ed4e6d3828a21
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL

@Ilmari
Any change to test this against GTK3/KDE to be sure; Skia is likely the best performing backend at this point in time