Bug 419318 - Click and drag scroll doesn't work when mouse leaves scrollbar if initial click was in right-most pixel
Summary: Click and drag scroll doesn't work when mouse leaves scrollbar if initial cli...
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 5.18.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-27 23:13 UTC by george fb
Modified: 2020-03-30 21:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
dolphin click and drag scroll behavior (420.38 KB, video/mp4)
2020-03-27 23:13 UTC, george fb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description george fb 2020-03-27 23:13:51 UTC
Created attachment 127056 [details]
dolphin click and drag scroll behavior

SUMMARY
When clicking the scroll bar **handle** I can drag it up and down
and it moves/scrolls with the mouse no matter where the cursor is.

But there is an area on the scroll bar that, when clicked, 
it is only possible to scroll when the cursor is over the scroll bar.
If the cursor leaves the scroll bar the scrolling pauses, 
but it resumes scrolling when the scroll bar is entered again.

STEPS TO REPRODUCE
1. Open dolphin maximized
2. Move cursor all the way to the right
3. Click and drag while over the scroll,
   cursor must be inline with the scroll handle
4. While still clicking move cursor between the view and scroll bar

OBSERVED RESULT
Scrolling pauses when cursor leaves scroll bar.

EXPECTED RESULT
Scrolling keeps working no matter where the cursor is.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20200325
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
This happens in other applications too,
but I don't know where else to report it.
Comment 1 Nate Graham 2020-03-30 15:11:39 UTC
Can reproduce. Looks like an issue in the Breeze style.
Comment 2 george fb 2020-03-30 15:26:26 UTC
It comes from the frame of KItemListContainer.
Setting the frame to QFrame::NoFrame removes the frame and with it the problem.
setFrameShape(QFrame::NoFrame);

I'm not saying the frame should be removed.
Comment 3 Nate Graham 2020-03-30 19:46:49 UTC
Right. Breeze should handle this case even when the frame is there.

Since it looks like you've been digging into the code, would you like to investigate further and submit a patch? I can help if you need anything!
Comment 4 george fb 2020-03-30 21:02:43 UTC
> Since it looks like you've been digging into the code
I did because I had the problem in an application of mine, but I don't need a frame so `setFrameShape(QFrame::NoFrame);` is enough for me.

> would you like to investigate further and submit a patch?
For now I can't, I struggle enough with this application of mine.

PS: Scrolling doesn't work either if mouse is over that area.