Adjust modifier for fast scrolling to match other OSes.

* instead of any of (OPTION, COMMAND, CONTROL), use SHIFT to
  trigger accelerated scrolling via the mouse wheel
This commit is contained in:
Oliver Tappe 2012-11-03 23:19:50 +01:00
parent 735ef328db
commit 410d1973c1
1 changed files with 4 additions and 4 deletions

View File

@ -5711,11 +5711,11 @@ BView::ScrollWithMouseWheelDelta(BScrollBar* scrollBar, float delta)
float smallStep, largeStep;
scrollBar->GetSteps(&smallStep, &largeStep);
// pressing the option/command/control key scrolls faster
if (modifiers()
& (B_OPTION_KEY | B_COMMAND_KEY | B_CONTROL_KEY)) {
// pressing the shift key scrolls faster (following the pseudo-standard set
// by other desktop environments).
if ((modifiers() & B_SHIFT_KEY) != 0)
delta *= largeStep;
} else
else
delta *= smallStep * 3;
scrollBar->SetValue(scrollBar->Value() + delta);