From 89d164def7e5e559f3151797b51f0368f0087e7f Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sat, 15 Nov 2003 13:33:26 +0000 Subject: [PATCH] Added comments to MouseWheelChanged function which explains how B_MOUSE_WHEEL_CHANGED behaves. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5376 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index 2ef597938f..c4445b83b5 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -1033,6 +1033,11 @@ ShowImageView::KeyDown (const char * bytes, int32 numBytes) void ShowImageView::MouseWheelChanged(BMessage *msg) { + // The BeOS driver does not currently support + // X wheel scrolling, therefore, dx is zero. + // |dy| is the number of notches scrolled up or down. + // When the wheel is scrolled down (towards the user) dy > 0 + // When the wheel is scrolled up (away from the user) dy < 0 const float kscrollBy = 40; float dy, dx; float x, y;