https://bugs.documentfoundation.org/show_bug.cgi?id=165371
Bug ID: 165371
Summary: Reverse page switching direction when scrolling the
mouse in the print dialog preview
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: UI
Assignee: [email protected]
Reporter: [email protected]
Description:
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.
The path to the required file is: **vcl/source/window/printdlg.cxx**
The necessary place in the code:
bool PrintDialog::PrintPreviewWindow::Command( const CommandEvent& rEvt )
{
const CommandWheelData* pWheelData =
[rEvt.GetWheelData()](rEvt.GetWheelData());
if(pWheelData->GetDelta() > 0)
mpDialog->previewForward();
else if (pWheelData->GetDelta() < 0)
mpDialog->previewBackward();
return true;
}
To make the scrolling behavior familiar, we need to swap the calls to Forward()
and Backward().
Steps to Reproduce:
1. Open any Libreoffice module (eg calc)
2. Create a document with more than 1 page
2. Open the print dialog
3. Try scrolling the print preview
Actual Results:
if scroll the mouse down, it shows the previous page, if scroll up, it shows
the next page
Expected Results:
if scroll the mouse down, it shows the next page, if scroll up, it shows the
previous page
Reproducible: Always
User Profile Reset: No
Additional Info:
--
You are receiving this mail because:
You are the assignee for the bug.