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
+8 -6
View File
@@ -3845,10 +3845,11 @@ BView::MessageReceived(BMessage* msg)
if (horizontal != NULL) { if (horizontal != NULL) {
horizontal->GetSteps(&smallStep, &largeStep); horizontal->GetSteps(&smallStep, &largeStep);
// pressing the option key scrolls faster // pressing the option/command/control key scrolls faster
if (modifiers() & B_OPTION_KEY) if (modifiers()
& (B_OPTION_KEY | B_COMMAND_KEY | B_CONTROL_KEY)) {
deltaX *= largeStep; deltaX *= largeStep;
else } else
deltaX *= smallStep * 3; deltaX *= smallStep * 3;
horizontal->SetValue(horizontal->Value() + deltaX); horizontal->SetValue(horizontal->Value() + deltaX);
@@ -3857,10 +3858,11 @@ BView::MessageReceived(BMessage* msg)
if (vertical != NULL) { if (vertical != NULL) {
vertical->GetSteps(&smallStep, &largeStep); vertical->GetSteps(&smallStep, &largeStep);
// pressing the option key scrolls faster // pressing the option/command/control key scrolls faster
if (modifiers() & B_OPTION_KEY) if (modifiers()
& (B_OPTION_KEY | B_COMMAND_KEY | B_CONTROL_KEY)) {
deltaY *= largeStep; deltaY *= largeStep;
else } else
deltaY *= smallStep * 3; deltaY *= smallStep * 3;
vertical->SetValue(vertical->Value() + deltaY); vertical->SetValue(vertical->Value() + deltaY);