Summary: | Scrolling with mouse wheel is too fast in large-icon-sized dialog boxes | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Unknown <null> |
Component: | Open/save dialogs | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | boski_cinek, bugseforuns, david.barouh, dustin, kdelibs-bugs, nate, pepko94, tynach2 |
Priority: | HI | Keywords: | junior-jobs, usability |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=386379 | ||
Latest Commit: | https://cgit.kde.org/kio.git/commit/?id=59b944470470f6bb65fc46cfff8181f7887fd9c8 | Version Fixed In: | 5.66 |
Sentry Crash Report: | |||
Attachments: | Skeleton patch |
Description
Unknown
2010-01-23 16:41:43 UTC
Related: bug 188757. Same issue as Dolphin's Icons view; see Bug 386379. Here's the problem: 1. With a wheel, scroll speed is determined by the number of "lines" to scroll per scroll wheel "tick" 2. Icon size determines the height of each line 3. With huge icons, only a small number of them will be visible at once given the necessarily somewhat small size of the file open/save dialog Therefore when the icons are huge, scrolling one "tick" will advance too quickly. The same fix is required here: use a smaller *effective* line height for the purpose of mouse wheel scrolling when icons are huge. Created attachment 118226 [details]
Skeleton patch
Something like the attached patch should do it. It doesn't work, and I'm not sure why yet, but it shows the general idea of a fix for this issue.
(In reply to Nate Graham from comment #3) > Created attachment 118226 [details] > Skeleton patch > > Something like the attached patch should do it. It doesn't work, and I'm not > sure why yet, but it shows the general idea of a fix for this issue. Second to last line of the patch: > const int height = itemView->iconSize().height() + metrics.height() * 2.5; So, you're still including the iconSize().height() in the calculation. Removing that should work, I think. author Arjen Hiemstra <ahiemstra@heimr.nl> 2019-12-21 11:55:38 -0700 committer Nate Graham <nate@kde.org> 2019-12-21 11:56:04 -0700 commit 59b944470470f6bb65fc46cfff8181f7887fd9c8 (patch) tree 677ebbeb0ca56422733e4908c16dd7991f1effc0 parent 9c131b2944334dd7185c2c8e3537ffe76d3ba7ae (diff) KDirOperator: Use a fixed line height for scroll speedHEADmaster Summary: This patch intends to do mostly the same as D19190, but for KDirOperator. This uses the font's line height multiplied by the amount of scroll lines from QApplication as a scroll speed for views. This makes the scroll speed not depend on the icon size, which greatly improves scrolling behaviour. For more details, see the linked review. Test Plan: Run tests/kfilewidgettest_gui and go to a directory with a lot of items. Scroll around, then change icon size and see that scrolling speed remains the same. Reviewers: ngraham, elvisangelaccio Reviewed By: ngraham, elvisangelaccio Subscribers: ngraham, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D25683 |