[okular] [Bug 422050] Scrolling issues with PageDown/PageUp navigation

Raul Laasner bugzilla_noreply at kde.org
Tue May 26 18:12:38 BST 2020


https://bugs.kde.org/show_bug.cgi?id=422050

Raul Laasner <raullaasner at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |raullaasner at gmail.com

--- Comment #1 from Raul Laasner <raullaasner at gmail.com> ---
The following fix worked for me:

diff --git a/ui/pageview.cpp b/ui/pageview.cpp
index 50f8073ec..9bdb778ec 100644
--- a/ui/pageview.cpp
+++ b/ui/pageview.cpp
@@ -5375,7 +5376,7 @@ void PageView::slotScrollUp( int nSteps )
             d->scroller->scrollTo(d->scroller->finalPosition() +
QPoint(0,-100*nSteps), 0);
         }else{
             if(d->scroller->finalPosition().y() >
verticalScrollBar()->minimum())
-                d->scroller->scrollTo(d->scroller->finalPosition() + QPoint(0,
-verticalScrollBar()->rect().height() ));
+                d->scroller->scrollTo(d->scroller->finalPosition() + QPoint(0,
-verticalScrollBar()->rect().height() ), 0);
         }
     }
     else if ( d->document->currentPage() > 0 )
@@ -5403,7 +5404,7 @@ void PageView::slotScrollDown( int nSteps )
             d->scroller->scrollTo(d->scroller->finalPosition() +
QPoint(0,100*nSteps), 0);
         }else{
             if(d->scroller->finalPosition().y() <
verticalScrollBar()->maximum())
-                d->scroller->scrollTo(d->scroller->finalPosition() + QPoint(0,
verticalScrollBar()->rect().height() ));
+                d->scroller->scrollTo(d->scroller->finalPosition() + QPoint(0,
verticalScrollBar()->rect().height() ), 0);
         }
     }
     else if ( (int)d->document->currentPage() < d->items.count() - 1 )

The second argument of scrollTo is the animation speed, which I've set to zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list