From 258fd455bc7a144316912b460b92cb964af2d232 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 8 Jun 2008 23:47:32 +0000 Subject: [PATCH] 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 --- src/kits/interface/View.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 841ec2b3b4..88d3f6354e 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -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);