Bug 247797 - Middle Mouse Button zoom has jumpy behavior on second screen
Summary: Middle Mouse Button zoom has jumpy behavior on second screen
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.11
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-14 01:10 UTC by Stephan Burkhardt
Modified: 2010-08-14 19:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.5.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Burkhardt 2010-08-14 01:10:03 UTC
Version:           0.11 (using KDE 4.5.0) 
OS:                Linux

When using the middle mouse button to zoom, okular "wraps" the upper and lower screen border so that you can zoom seamless without beeing bound by your screen. THIS is great!

On my second monitor however something odd occurs when traversing the screen border: There is a huge jump (e.g. zoom factor jumps from 200% to 10%) with only a tiny mouse movement. This is does not happen everytime, but only about 60% of the time. It seems to happen less often when okular is not maximized.

I assume that traversing the screen border is somehow counted twice, meaning that the zoom jumps by the amount it would change when moving the mouse by ~1050 pixel. I had filed a similar bug for scrolling with the first mouse button about 18 month ago, but this seems to be fixed now (was bug 167438 ).

Further info: Using Ubuntu 10.04, "kubuntu-ppa backport" packages of KDE SC 4.5.0. Window manager is Compiz, Desktop is Gnome (I will try this later with kwin)

This is obviously not a show-stopper, so it should be low priority. Furthermore the first bug 167438 similar bug seemed to be caused by a qt bug  (QMouseEvent is called twice for the same event), so it might be quite hard to fix it.

Reproducible: Sometimes

Steps to Reproduce:
Open a document with okular on your second screen, maximize the window.
Now hold the middle mouse button pressed to zoom in and out.
While doing so, cross the screen border several times.
Instead of zooming in and out smoothly, there will by a huge jump in zoom factor.

Actual Results:  
Zoom factor jumps.

Expected Results:  
Zooming should work smoothly.

OS: Linux (x86_64) release 2.6.32-24-generic
Compiler: cc
Comment 1 Pino Toscano 2010-08-14 11:23:36 UTC
What are the configured geometries (size and position) of the two screens?
Comment 2 Albert Astals Cid 2010-08-14 12:42:07 UTC
Pino: Might the fix be similar to what we did in r1156337?
Comment 3 Albert Astals Cid 2010-08-14 13:56:42 UTC
SVN commit 1163568 by aacid:

make sure we wrap correctly when zoooming too
BUGS: 247797


 M  +7 -1      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1163568
Comment 4 Albert Astals Cid 2010-08-14 13:57:16 UTC
SVN commit 1163569 by aacid:

Backport r1163568 | aacid | 2010-08-14 12:59:49 +0100 (Sat, 14 Aug 2010) | 3 lines

make sure we wrap correctly when zoooming too
BUGS: 247797
FIXED-IN: 4.5.1


 M  +7 -1      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1163569
Comment 5 Stephan Burkhardt 2010-08-14 19:57:45 UTC
Wow, you guys are fast!

In answer to comment 1 (if it still matters):
 ________ ______________
| 1440 x |              |
|  900   |  1680 x      |
|        |  1050        |
 --------               |
         |              |
          --------------