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:
parent
735ef328db
commit
410d1973c1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user