[Bug 276709] hms(4): two finger scroll stops half way unless dev.hms.0.drift_thresh=0

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 12 Feb 2024 16:05:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276709

--- Comment #2 from Edward Tomasz Napierala <trasz@FreeBSD.org> ---
It is better with it set to eg 10, but it still occasionally gets stuck.

I wonder... From what I understand it tries to detect and filter out repeating
inputs.  What if the problem happens because, differently from cursor movement
which is kind of random:

 event6   POINTER_MOTION          +0.536s         7.86/  5.24 ( +6.00/ +4.00)
 event6   POINTER_MOTION          +0.546s         7.76/  1.29 ( +6.00/ +1.00)
 event6   POINTER_MOTION          +0.556s         4.49/  1.12 ( +4.00/ +1.00)
 event6   POINTER_MOTION          +0.566s         2.00/  0.00 ( +2.00/ +0.00)
 event6   POINTER_MOTION          +0.576s         3.00/ -2.00 ( +3.00/ -2.00)
 event6   POINTER_MOTION          +0.586s         2.00/ -3.00 ( +2.00/ -3.00)
 event6   POINTER_MOTION          +0.596s         2.03/ -4.05 ( +2.00/ -4.00)
 event6   POINTER_MOTION          +0.606s         0.00/ -6.82 ( +0.00/ -6.00)
 event6   POINTER_MOTION          +0.616s         0.00/ -7.32 ( +0.00/ -6.00)
 event6   POINTER_MOTION          +0.626s        -5.32/ -9.31 ( -4.00/ -7.00)
 event6   POINTER_MOTION          +0.636s        -7.37/-10.32 ( -5.00/ -7.00)
 event6   POINTER_MOTION          +0.646s        -2.48/ -3.72 ( -2.00/ -3.00)
 event6   POINTER_MOTION          +0.656s        -3.01/ -3.01 ( -3.00/ -3.00)
 event6   POINTER_MOTION          +0.666s        -3.01/ -1.00 ( -3.00/ -1.00)
 event6   POINTER_MOTION          +0.676s        -2.00/  0.00 ( -2.00/ +0.00)
 event6   POINTER_MOTION          +0.686s        -1.00/  0.00 ( -1.00/ +0.00)
 event6   POINTER_MOTION          +0.696s        -2.00/  0.00 ( -2.00/ +0.00)

The scroll events in all direction look mostly the same:

 event6   POINTER_SCROLL_WHEEL    +0.784s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +0.814s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +1.164s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +1.184s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +1.204s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +1.234s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +1.544s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +1.564s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)
 event6   POINTER_SCROLL_WHEEL    +1.584s       vert 15.00/120.0* horiz
0.00/0.0 (wheel)

So perhaps the threshold logic is mistaking them for duplicates?

-- 
You are receiving this mail because:
You are the assignee for the bug.