]> cloud.milkyroute.net Git - dolphin.git/commit
base scrolling on the smallest item
authorMarco Martin <notmart@gmail.com>
Mon, 29 Jan 2018 10:52:23 +0000 (11:52 +0100)
committerMarco Martin <notmart@gmail.com>
Mon, 29 Jan 2018 10:54:12 +0000 (11:54 +0100)
commit0b130dd57e594d7433141483aa162e4414a9d07b
tree0db82dc34e688b542703f4ebdd141abffed0d7c9
parent7caef6d251a1611842f73a9942f1bfc1dd2ec13b
base scrolling on the smallest item

Summary:
CCBUG: 386379

after recent highdpi patches on scrolling that delegated it
completely to the scrollbar, based upon the scrollbar singleStep
setted to the tallest of the items in the view.
tough this makes scrolling way too fast, and on folders where just
few filenames are longer than most we can get a single scrolling
step almost double the number of lines configured in the
mouse kcm.
Using the shortest item instead of the tallest mitigates this problem
making it a bit more usable

Test Plan:
tested on different folders in different view modes both with
mouse and touchpad

Reviewers: #dolphin, broulik, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10102
src/kitemviews/kitemlistcontainer.cpp
src/kitemviews/kitemlistview.cpp
src/kitemviews/private/kitemlistsizehintresolver.cpp
src/kitemviews/private/kitemlistsizehintresolver.h