1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-17 14:45:49 +01:00

Fixed a bug in scroller code related to mouse wheels

This commit is contained in:
dan
2000-12-28 00:30:09 +00:00
parent 45869c37e0
commit f81d0f30de
2 changed files with 8 additions and 3 deletions

View File

@@ -823,7 +823,9 @@ handleActionEvents(XEvent *event, void *data)
break;
case ButtonPress:
/* FIXME: change Mod1Mask with something else */
/* FIXME: change Mod1Mask with something else */
if (sPtr->flags.documentFullyVisible)
break;
if (event->xbutton.button==WINGsConfiguration.mouseWheelUp) {
if (event->xbutton.state & ControlMask) {
sPtr->flags.hitPart = WSDecrementPage;
@@ -837,8 +839,7 @@ handleActionEvents(XEvent *event, void *data)
WMPostNotificationName(WMScrollerDidScrollNotification, sPtr,
NULL);
}
}
else if (event->xbutton.button==WINGsConfiguration.mouseWheelDown) {
} else if (event->xbutton.button==WINGsConfiguration.mouseWheelDown) {
if (event->xbutton.state & ControlMask) {
sPtr->flags.hitPart = WSIncrementPage;
} else if (event->xbutton.state & ShiftMask) {