linux scroller now match win32 behaviour more precisely - scrolling reversed and scaled 120

This commit is contained in:
Elias Naur 2003-02-24 19:46:52 +00:00
parent 4677a35556
commit 470ea4a7dc
1 changed files with 4 additions and 2 deletions

View File

@ -51,6 +51,8 @@
#define POINTER_WARP_BORDER 10
#define WARP_RETRY 5
// scale the mouse wheel according to win32
#define WHEEL_SCALE 120
extern Display *disp;
extern Window win;
@ -217,10 +219,10 @@ void handleButtonPress(XButtonEvent *event) {
buttons[2] = JNI_TRUE;
break;
case Button4:
current_z--;
current_z += WHEEL_SCALE;
break;
case Button5:
current_z++;
current_z -= WHEEL_SCALE;
break;
default: assert(0);
}