Skip to content

Commit

Permalink
fix: mouse back should show previous image
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Oct 8, 2021
1 parent 7a1816c commit 3f327f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void MainWindow::mouseReleaseEvent(QMouseEvent *event)
// Reference:
// [1]: https://codereview.qt-project.org/c/qt/qtbase/+/177475
if (event->button() == Qt::ForwardButton || event->button() == Qt::BackButton) {
event->button() == Qt::BackButton ? galleryNext() : galleryPrev();
event->button() == Qt::BackButton ? galleryPrev() : galleryNext();
event->accept();
}

Expand Down

0 comments on commit 3f327f9

Please sign in to comment.