Fix the scroll direction in the pretty image view. Fixes issue #1226

This commit is contained in:
David Sansome 2011-01-09 19:10:15 +00:00
parent 7e3c0911ee
commit 2d53db13c3
1 changed files with 1 additions and 1 deletions

View File

@ -161,6 +161,6 @@ void PrettyImageView::resizeEvent(QResizeEvent* e) {
}
void PrettyImageView::wheelEvent(QWheelEvent* e) {
const int d = e->delta() > 0 ? 1 : -1;
const int d = e->delta() > 0 ? -1 : 1;
ScrollTo(current_index_ + d, true);
}