Scrolling on desktop travels the virtual desktop in reverge direction than scrolling on the pager. Because scolling on desktop was a little bit confusing: changed scoll direction.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867906
This commit is contained in:
Konstantin Heil 2008-10-04 22:09:15 +00:00
parent a3c564c129
commit a99aee5e8d

View File

@ -1059,7 +1059,7 @@ void Containment::wheelEvent(QGraphicsSceneWheelEvent *event)
int numDesktops = KWindowSystem::numberOfDesktops();
int currentDesktop = KWindowSystem::currentDesktop();
if (event->delta() > 0) {
if (event->delta() < 0) {
KWindowSystem::setCurrentDesktop(currentDesktop % numDesktops + 1);
} else {
KWindowSystem::setCurrentDesktop((numDesktops + currentDesktop - 2) % numDesktops + 1);