https://bugs.kde.org/show_bug.cgi?id=411058

--- Comment #6 from Carl Wilson <kaiw...@gmail.com> ---
Created attachment 124863
  --> https://bugs.kde.org/attachment.cgi?id=124863&action=edit
Events logged with xinput test-xi2 --root

I discover that to trigger this issue, the focus has to be changed into the
XWayland window - that is, suppose Chromium and Konsole are placed side-by-side
and the current focus is in the latter's window. If I move the pointer onto
Chromium, nothing happens and I can scroll the content inside using gestures
without hassle. However, if I click the Chromium window to switch the focus to
it, this issue will be exhibited.

The attachment is a sample log obtained with xinput test-xi2 --root . It seems
to be pretty messy, and I have to admit that I don't have much knowledge about
the input stack. Anyway I will try to describe what I have done.

At Line 8, I moved the cursor from a Wayland window into Chromium's XWayland
window. Then the cursor continued moving in XWayland until maybe Line 266, when
I began to perform two-finger scroll in it. That should end at Line 935, when I
began moving the cursor back to the adjacent Wayland window. It should finally
reach the border at Line 1335.

After a while, I began the next part of the experiment and the cursor entered
XWayland maybe at Line 1345? It moved for a short time before I did a
tap-to-click gesture at Line 1555. Then a storm of spurious events happens,
where all seem identical to the one from Line 1567 to Line 1577. The effect of
this event should cause Chromium to scroll upward infinitely this time.  I
tried to perform a two-finger downward scroll, but it would be greeted with
this spurious upward scroll and cancels the effect of previous operation. Or in
a separate trial not attached here, I tried to drag the scrollbar to scroll
downward by using "tap-to-hold" gesture and drag it in that direction. But as
soon as I release my finger, it just scrolls upwards again.

Then at Line 3955, I pressed the "T" key on my keyboard. After that, the
problem is gone and I can scroll in that window as usual. It's worth mentioning
that keys for alphabets or numbers do this trick, but clicking "Ctrl" won't
work and Chromium keep scrolling.

Linux/KDE Plasma: 5.4.6-arch3-1
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0
libinput version: 1.14.3

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to