Bug 364320 - Scroll event captured by controls, instead of scrolling panel
Summary: Scroll event captured by controls, instead of scrolling panel
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-14 15:44 UTC by Paddy
Modified: 2016-06-16 09:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paddy 2016-06-14 15:44:04 UTC
I am now using KDE 5 from OpenSUSE 42.1. When the window is small and you want to use mouse wheel to scroll it, the scroll event will be captured by some controls (like combobox) if it is just scrolled to the position under your mouse. The action here will be changing the content of that combobox, instead of continuing scroll the panel.

I have noticed that this is because when you move your mouse over the control, it will immediately get the focus (it's border begin glowing) so any latter wheel event will be captured by the control.

Reproducible: Always

Steps to Reproduce:
1. Open KDE System Settings and click any subpage that have many controls inside, for example "Window Behavior".
2. Adjust the window height of the System Settings, let the vertical scroll bar of right panel appears, so you can use your mouse wheel.
3. Put the mouse to any blank place in this panel, then scroll your mouse wheel.

Actual Results:  
If one of the controls on in "Window Behavior" just goes under your mouse during scrolling, it will be focused, and its value will be immediately modified. The scroll of the whole page is interrupted.

Expected Results:  
Scrolling of the whole page is not interrupted even when any control goes under your mouse during the process.

Maybe it is useful to add a delay for controls getting focus when hovered. It will be focused only when you have hover your mouse on it for enough time, like 500ms.
Comment 1 Christoph Feck 2016-06-16 09:32:35 UTC
Some Qt widgets indeed get focus when the wheel is used.

Please report this issue directly to Qt developers via https://bugreports.qt.io/