Also do fast mouse wheel scrolling when Command or Control is pressed
(was Option only). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25871 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ca7b0f375e
commit
258fd455bc
@ -3845,10 +3845,11 @@ BView::MessageReceived(BMessage* msg)
|
||||
if (horizontal != NULL) {
|
||||
horizontal->GetSteps(&smallStep, &largeStep);
|
||||
|
||||
// pressing the option key scrolls faster
|
||||
if (modifiers() & B_OPTION_KEY)
|
||||
// pressing the option/command/control key scrolls faster
|
||||
if (modifiers()
|
||||
& (B_OPTION_KEY | B_COMMAND_KEY | B_CONTROL_KEY)) {
|
||||
deltaX *= largeStep;
|
||||
else
|
||||
} else
|
||||
deltaX *= smallStep * 3;
|
||||
|
||||
horizontal->SetValue(horizontal->Value() + deltaX);
|
||||
@ -3857,10 +3858,11 @@ BView::MessageReceived(BMessage* msg)
|
||||
if (vertical != NULL) {
|
||||
vertical->GetSteps(&smallStep, &largeStep);
|
||||
|
||||
// pressing the option key scrolls faster
|
||||
if (modifiers() & B_OPTION_KEY)
|
||||
// pressing the option/command/control key scrolls faster
|
||||
if (modifiers()
|
||||
& (B_OPTION_KEY | B_COMMAND_KEY | B_CONTROL_KEY)) {
|
||||
deltaY *= largeStep;
|
||||
else
|
||||
} else
|
||||
deltaY *= smallStep * 3;
|
||||
|
||||
vertical->SetValue(vertical->Value() + deltaY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user