Fix Up/Down scrolling

wilder-rebase
Jacopo De Simoi 6 years ago committed by Jacopo De Simoi
parent 673e74a7dd
commit bb18af93cb
  1. 6
      part/pageview.cpp

@ -2052,7 +2052,7 @@ void PageView::keyPressEvent(QKeyEvent *e)
{ {
case Qt::Key_K: case Qt::Key_K:
case Qt::Key_Down: case Qt::Key_Down:
slotScrollDown( 1 /* go down 1 step */ ); slotScrollDown( 3 /* go down 1 step */ );
break; break;
case Qt::Key_PageDown: case Qt::Key_PageDown:
@ -2061,7 +2061,7 @@ void PageView::keyPressEvent(QKeyEvent *e)
case Qt::Key_I: case Qt::Key_I:
case Qt::Key_Up: case Qt::Key_Up:
slotScrollUp(1 /* go up 1 step */); slotScrollUp( 3 /* go up 1 step */ );
break; break;
case Qt::Key_PageUp: case Qt::Key_PageUp:
@ -2080,7 +2080,7 @@ void PageView::keyPressEvent(QKeyEvent *e)
} }
break; break;
case Qt::Key_Right: case Qt::Key_Right:
case Qt::Key_L case Qt::Key_L:
if (horizontalScrollBar()->maximum() == 0) { if (horizontalScrollBar()->maximum() == 0) {
// if we cannot scroll we advance the page vertically // if we cannot scroll we advance the page vertically
int next_page = d->document->currentPage() + viewColumns(); int next_page = d->document->currentPage() + viewColumns();

Loading…
Cancel
Save