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:
Ingo Weinhold 2008-06-08 23:47:32 +00:00
parent ca7b0f375e
commit 258fd455bc

View File

@ -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);