int zones, left, right;
double width;
+ pos -= cfg->pad_xmin;
+
zones = 0;
if (cfg->button_1touch > 0)
zones++;
if (zones > 0) {
width = ((double)cfg->pad_width)/((double)zones);
#ifdef DEBUG_GESTURES
- xf86Msg(X_INFO, "buttons_update: pad width %d, zones %d, zone width %f, x %d\n",
- cfg->pad_width, zones, width, pos);
+ xf86Msg(X_INFO, "buttons_update: pad width %d (min %d), zones %d, zone width %f, x %d\n",
+ cfg->pad_width, cfg->pad_xmin, zones, width, pos);
#endif
for (i = 0; i < zones; i++) {
left = width*i;
{
if ((gs->move_type == GS_MOVE || !timercmp(&gs->time, &gs->move_wait, <)) && (dx != 0 || dy != 0)) {
if (trigger_drag_start(gs, cfg, dx, dy)) {
- gs->move_dx = (int)(dx*cfg->sensitivity);
- gs->move_dy = (int)(dy*cfg->sensitivity);
+ gs->move_dx = (int)(dx*cfg->sensitivity_big);
+ gs->move_dy = (int)(dy*cfg->sensitivity_big);
gs->move_type = GS_MOVE;
gs->move_dist = 0;
gs->move_dir = TR_NONE;