Bug 119233 - Trackpad click handling very slow on MacOS, leads to randomly moving objects in Draw
Summary: Trackpad click handling very slow on MacOS, leads to randomly moving objects ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.3.7.2 release
Hardware: x86 (IA32) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-12 19:36 UTC by Ken Shirriff
Modified: 2019-08-21 00:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test file to demonstrate select/move bug (1.32 MB, application/vnd.oasis.opendocument.graphics)
2018-08-14 03:06 UTC, Ken Shirriff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Shirriff 2018-08-12 19:36:10 UTC
Description:
When I click on an object to select it and then move the cursor after releasing, Draw often acts as if I was still holding the object, moving it unexpectedly. I need to wait a while after selecting an object before I can move the cursor to give LibreOffice time to deal with the click.

Steps to Reproduce:
1. Using the trackpad, click and release on an object to select it
2. Move cursor using trackpad, immediately after the previous step

Actual Results:
The object is selected and dragged. I then need to move the object back to where it was, which is annoying.

This is also laggy, happening about 1/3 second after I move the cursor.

Expected Results:
The object is selected, then the cursor moves without moving the object. This is the behavior I get if I do things slooowly.


Reproducible: Sometimes


User Profile Reset: Yes



Additional Info:
If I wait a long time (> .5 second) between the release and the cursor move, it works correctly. But with normal trackpad usage I usually get the bad behavior. I have a clear gap between the release and the move when I see the problem; I'm definitely not starting the move before I unclick. I want to emphasize that I'm not doing crazy speed demon moves with the trackpad, just using it at a normal pace as with any other program.

It seems like LibreOffice is slow in processing mouse events. I suspect that it is processing the drag event before the unclick event even though the drag happens afterwards.

This happens with OpenGL disabled or enabled.

Version: 5.2.6.2
Build ID: a3100ed2409ebf1c212f5048fbe377c281438fdc
CPU Threads: 4; OS Version: Mac OS X 10.13.6; UI Render: GL; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Telesto 2018-08-12 20:05:53 UTC
Maybe bug 105500 (sidebar enabled). There are also some speed improvements for MacOS in   LibreOffice 6.1 (and maybe also in 6.0). So updating seems a good idea.
Comment 2 Ken Shirriff 2018-08-13 02:50:16 UTC
I updated, but I'm still seeing this with 6.0.6 and 6.1.0.3, both with the sidebar opened and closed.
Comment 3 Telesto 2018-08-13 07:21:55 UTC
Does this happen with a single shape? Or are we taking about other objects? Or a larger file. A sample file would be practical.
Comment 4 Ken Shirriff 2018-08-14 03:06:36 UTC
Created attachment 144162 [details]
Test file to demonstrate select/move bug
Comment 5 Ken Shirriff 2018-08-14 03:14:02 UTC
I've attached a test file. To reproduce the problem, click on the image and immediately move the cursor with the trackpad after releasing the click. Observed behavior: the image gets dragged along and moved. Expected behavior: the image is selected and the cursor moves.

It's a bit strange, because I'm having a lot harder time reproducing the problem than yesterday. Before, I repeated the problem dozens of times and it would happen with any of the objects: text boxes or lines. But now it just happens with the image.

I've tried to determine if anything has changed since yesterday to provide more information. CPU load was low both times (if it gets high I hear the fan run). I hadn't restarted LibreOffice. It's not a memory leak or something since I saw the problem yesterday immediately after installing new versions. It's not my laptop, since I've seen the problem both on MacBook Pro and MacBook Air. The problem is independent of the sidebar. Most of the time I have a fairly large image in the drawing, so maybe that's a clue.
Comment 6 Telesto 2018-08-14 07:05:37 UTC
I reproduced it with
Version: 6.2.0.0.alpha0+
Build ID: c958f52b813d34baa9b5236bb34a08a04e6b0aba
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-08-10_05:06:44
Locale: nl-NL (nl_NL.UTF-8); Calc: threaded

and with
Version: 4.3.7.2
Build ID: 8a35821d8636a03b8bf4e15b48f59794652c68ba
Comment 7 QA Administrators 2019-08-19 06:58:37 UTC Comment hidden (obsolete)
Comment 8 Ken Shirriff 2019-08-21 00:32:29 UTC
I was not able to reproduce on:
Version: 6.3.0.4
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: GL; VCL: osx; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded