fix: mouse back should show previous image
This commit is contained in:
parent
7a1816cbac
commit
3f327f94dc
|
@ -300,7 +300,7 @@ void MainWindow::mouseReleaseEvent(QMouseEvent *event)
|
||||||
// Reference:
|
// Reference:
|
||||||
// [1]: https://codereview.qt-project.org/c/qt/qtbase/+/177475
|
// [1]: https://codereview.qt-project.org/c/qt/qtbase/+/177475
|
||||||
if (event->button() == Qt::ForwardButton || event->button() == Qt::BackButton) {
|
if (event->button() == Qt::ForwardButton || event->button() == Qt::BackButton) {
|
||||||
event->button() == Qt::BackButton ? galleryNext() : galleryPrev();
|
event->button() == Qt::BackButton ? galleryPrev() : galleryNext();
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user