[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/okular/ui
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2010-08-14 11:59:49
Message-ID: 20100814115949.E3889AC857 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1163568 by aacid:
make sure we wrap correctly when zoooming too
BUGS: 247797
M +7 -1 pageview.cpp
--- trunk/KDE/kdegraphics/okular/ui/pageview.cpp #1163567:1163568
@@ -1428,7 +1428,13 @@
int deltaY = d->mouseMidLastY - mouseY;
// wrap mouse from top to bottom
- QRect mouseContainer = KGlobalSettings::desktopGeometry( this );
+ const QRect mouseContainer = KGlobalSettings::desktopGeometry( this );
+ const int absDeltaY = abs(deltaY);
+ if ( absDeltaY > mouseContainer.height() / 2 )
+ {
+ deltaY = mouseContainer.height() - absDeltaY;
+ }
+
if ( mouseY <= mouseContainer.top() + 4 &&
d->zoomFactor < 3.99 )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic