]> cloud.milkyroute.net Git - dolphin.git/commit
Do not try to smooth-scroll past the end of the view
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 22 Jul 2013 17:16:07 +0000 (19:16 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 22 Jul 2013 17:16:07 +0000 (19:16 +0200)
commit0ad86983f4d746d2995720b895c14051556eeeee
tree411280bf99d9ab31eac0dbe3f681bad8b1bfcb95
parent9d6d998a51316a5d15dc759d7d25a8331b922159
Do not try to smooth-scroll past the end of the view

KItemListSmoothScroller::scrollTo(qreal position) did not check if
'position' is a valid value. Even if the view is scrolled to the bottom
already, it tried to scroll further and activated "smooth scrolling"
when the mouse wheel is used. Because it never got out of the "smooth
scrolling" state then, it got confused when changing the directory, and
restoring the correct scroll offset could fail.

BUG: 322212
FIXED-IN: 4.11.0
REVIEW: 111557
src/kitemviews/private/kitemlistsmoothscroller.cpp