mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 15:16:28 +01:00
Cover Browser: Fix visual "pop" when scrolling the first time
This commit is contained in:
parent
eaae5b235e
commit
1eb1a32254
1 changed files with 2 additions and 2 deletions
|
|
@ -496,9 +496,9 @@ void PictureFlowPrivate::setCurrentSlide(int index)
|
|||
{
|
||||
animateTimer.stop();
|
||||
step = 0;
|
||||
centerIndex = qBound(index, 0, slideImages->count()-1);
|
||||
centerIndex = qBound(0, index, qMax(0, slideImages->count()-1));
|
||||
target = centerIndex;
|
||||
slideFrame = ((long long)index) << 16;
|
||||
slideFrame = ((long long)centerIndex) << 16;
|
||||
resetSlides();
|
||||
triggerRender();
|
||||
widget->emitcurrentChanged(centerIndex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue