D18118: Presentation mode: go to previous page when left-clicking on left half of the page

Oliver Sander noreply at phabricator.kde.org
Tue Jan 8 20:40:25 GMT 2019


sander created this revision.
Herald added a project: Okular.
Herald added a subscriber: okular-devel.
sander requested review of this revision.

REVISION SUMMARY
  Previously, left-clicking with the mouse would advance the presentation to the next page no matter the cursor position.  With this patch, clicks on the right half of the screen still lead to the next page being shown, but clicks on the left half lead to the previous page now.
  
  As touch events are set to create mouse events, touching on the left half of a touch screen will lead to the previous page, too. This should make people happy that use Okular for sheet music.
  
  The actual action happens on mouse-release.  For touch screens this means less interference with swipe gestures (which also allow to go to the previous/next page).

TEST PLAN
  - Open a pdf in presentation mode
  - Click on the right half of the screen (with the left mouse button)
  - Result: the next page is shown
  - Click on the left half of the screen
  - Result: the previous page is shown

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D18118

AFFECTED FILES
  ui/presentationwidget.cpp
  ui/presentationwidget.h

To: sander
Cc: okular-devel, ngraham, darcyshen, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190108/e44e3e1f/attachment.html>


More information about the Okular-devel mailing list