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;
|
float smallStep, largeStep;
|
||||||
scrollBar->GetSteps(&smallStep, &largeStep);
|
scrollBar->GetSteps(&smallStep, &largeStep);
|
||||||
|
|
||||||
// pressing the option/command/control key scrolls faster
|
// pressing the shift key scrolls faster (following the pseudo-standard set
|
||||||
if (modifiers()
|
// by other desktop environments).
|
||||||
& (B_OPTION_KEY | B_COMMAND_KEY | B_CONTROL_KEY)) {
|
if ((modifiers() & B_SHIFT_KEY) != 0)
|
||||||
delta *= largeStep;
|
delta *= largeStep;
|
||||||
} else
|
else
|
||||||
delta *= smallStep * 3;
|
delta *= smallStep * 3;
|
||||||
|
|
||||||
scrollBar->SetValue(scrollBar->Value() + delta);
|
scrollBar->SetValue(scrollBar->Value() + delta);
|
||||||
|
|
Loading…
Reference in New Issue