Commit 2ceb2e1b authored by Peter Hutterer's avatar Peter Hutterer

Add a comment regarding scroll dist default values

Changed this during development because I forgot that the value actually
matters (for touchpads anyway).
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
Reviewed-by: default avatarHans de Goede <>
parent f47f78eb
......@@ -2931,13 +2931,19 @@ xf86libinput_pre_init(InputDriverPtr drv,
pInfo->private = driver_data;
driver_data->pInfo = pInfo;
driver_data->scroll.vdist = 15;
driver_data->scroll.hdist = 15;
driver_data->path = path;
driver_data->shared_device = shared_device;
/* Scroll dist value matters for source finger/continuous. For those
* devices libinput provides pixel-like data, changing this will
* affect touchpad scroll speed. For wheels it doesn't matter as
* we're using the discrete value only.
driver_data->scroll.vdist = 15;
driver_data->scroll.hdist = 15;
if (!is_subdevice) {
if (libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_POINTER))
driver_data->capabilities |= CAP_POINTER;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment