Skip to content

Commit

Permalink
Shell|GUI|Windows|Mac OS X: Adjusted mouse wheel sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 25, 2013
1 parent cb98026 commit 2305bbe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doomsday/tools/shell/shell-gui/src/consolepage.cpp
Expand Up @@ -77,7 +77,11 @@ void ConsolePage::wheelEvent(QWheelEvent *ev)
_wheelAccum += ev->delta();

int linesToScroll = 0;
int const lineStep = 32;
#ifdef MACOSX
int const lineStep = 40;
#else
int const lineStep = 60;
#endif
while(_wheelAccum < -lineStep)
{
_wheelAccum += lineStep;
Expand All @@ -95,6 +99,9 @@ void ConsolePage::wheelEvent(QWheelEvent *ev)
updateScrollPosition(newPos);
update();
}
#ifndef MACOSX
_wheelAccum = 0;
#endif
}
else
{
Expand Down

0 comments on commit 2305bbe

Please sign in to comment.