https://bugs.documentfoundation.org/show_bug.cgi?id=173112

--- Comment #7 from Patrick (volunteer) <[email protected]> ---
I found a Logitech USB mouse and plugged it into my M1 Pro laptop.
Unfortunately, I still could not reproduce the bug.

But I do have an idea and have submitted the following patch. Once the patch
passes all automated tests, I'll commit it and then you will be able to test my
patch in a nightly build:

https://gerrit.libreoffice.org/c/core/+/209112

My first guess is that your mouse is flooding LibreOffice with left mouse
dragged events. I had encountered a similar problem in tdf#163945 and, to fix
that bug, I had limited the number of times that LibreOffice does a relayout
and redraw from mouse drags to no more than 40 times per second.

So my idea is to look ahead in the native event queue, only dispatch the latest
pending left mouse dragged event, and skip all of the left mouse dragged events
before the latest.

The idea is to prevent the native event queue from getting backed up with left
mouse dragged events. LibreOffice already uses this same approach for scroll
wheel and trackpad swipe events so maybe it will also work in this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to