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.tietze@documentfoundation.org>
Tested-by: Jenkins
This commit is contained in:
Irgaliev Amin
2025-03-20 18:47:44 +04:00
committed by Heiko Tietze
parent ec8ea01600
commit 13575ca0fb

View File

@@ -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);