Don't use stale coordinates in the hysteresis filter.

OK mpi@
This commit is contained in:
bru 2017-03-07 19:07:56 +00:00
parent f372d76f12
commit d428134982

View File

@ -252,6 +252,9 @@ WSConsReadHwState(InputInfoPtr pInfo,
if (reset) { if (reset) {
/* Ensure that pointer motion stops. */ /* Ensure that pointer motion stops. */
priv->count_packet_finger = 0; priv->count_packet_finger = 0;
/* Don't use stale coordinates for filtering. */
priv->hyst_center_x = hw->x;
priv->hyst_center_y = hw->y;
if (priv->vert_scroll_twofinger_on if (priv->vert_scroll_twofinger_on
|| priv->horiz_scroll_twofinger_on) { || priv->horiz_scroll_twofinger_on) {
WSConsAdjustScrollCoords(priv, hw); WSConsAdjustScrollCoords(priv, hw);