vcl/source/window/printdlg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 13575ca0fb914dbdc075ca6c3a8d7fce370b4807 Author: Irgaliev Amin <irgalie...@mail.ru> AuthorDate: Thu Mar 20 18:47:44 2025 +0400 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Fri Mar 21 09:51:07 2025 +0100 tdf#165371 Reverse page switching direction using mouse in print dialog preview If there are multiple pages when previewing in the print dialog, standard scrolling down (to the next page) will not work. When a user sees the print preview, they expect to navigate through pages using standard scrolling: upwards for the previous page and downwards for the next page. However, at this point, the direction of page switching is reversed: scrolling upwards takes you to the next page, while scrolling down takes you to the previous page. Change-Id: I534e6f26699d74466a69d9f4f4e8646fb1c9074f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183174 Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Tested-by: Jenkins diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index a06fba332d96..83c874c91457 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -198,9 +198,9 @@ bool PrintDialog::PrintPreviewWindow::Command( const CommandEvent& rEvt ) { const CommandWheelData* pWheelData = rEvt.GetWheelData(); if(pWheelData->GetDelta() > 0) - mpDialog->previewForward(); - else if (pWheelData->GetDelta() < 0) mpDialog->previewBackward(); + else if (pWheelData->GetDelta() < 0) + mpDialog->previewForward(); return true; } return CustomWidgetController::Command(rEvt);