Skip to content

Commit

Permalink
Switch confused vertical and horizontal scroll labels
Browse files Browse the repository at this point in the history
This was causing scrolling gaps in Qt5 applications.

Here is a code from the middle of the code:
 valuator_mask_set_double(mask, 2, gs->scroll_speed_y * delta);
 valuator_mask_set_double(mask, 3, gs->scroll_speed_x * delta);

The 2 is vertical and the 3 is horizontal directions.
  • Loading branch information
alexbers committed Jun 8, 2017
1 parent 02f458a commit 05b3176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/mtrack.c
Expand Up @@ -69,8 +69,8 @@ static void init_axes_labels(Atom map[NUM_AXES])
memset(map, 0, NUM_AXES * sizeof(Atom));
PROPMAP(map, 0, AXIS_LABEL_PROP_REL_X);
PROPMAP(map, 1, AXIS_LABEL_PROP_REL_Y);
PROPMAP(map, 2, AXIS_LABEL_PROP_REL_HSCROLL);
PROPMAP(map, 3, AXIS_LABEL_PROP_REL_VSCROLL);
PROPMAP(map, 2, AXIS_LABEL_PROP_REL_VSCROLL);
PROPMAP(map, 3, AXIS_LABEL_PROP_REL_HSCROLL);
}

static void init_button_labels(Atom map[DIM_BUTTON])
Expand Down

0 comments on commit 05b3176

Please sign in to comment.