Improve precision of touch velocity computation by taking "historical" events into account
Categories
(Core :: Panning and Zooming, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 3 obsolete files)
On Android, MotionEvent lets you access "historical" event data for the original events that were batched into one MotionEvent. Chrome makes use of these events in its velocity tracker, and we should probably do the same.
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Is this something that came up while you were working on bug 1458653? If so, are you planning to take this bug, or are you spinning it out for somebody else to tackle?
Assignee | ||
Comment 2•5 years ago
|
||
It is something that I stumbled over as part of the investigation into that bug, but it's probably not essential to do for that bug. I'm not planning to work on this.
Assignee | ||
Comment 3•4 years ago
|
||
I'm going to take a quick stab at it. It seems that my Moto G5 samples the touch screen at a rate of 100Hz. Since vsync happens at 60Hz, and touch events are dispatched in alignment with vsync, that means that each touch event is the result of one or two touch screen samples. An increase of 50% touch data would definitely make it easier for the AndroidVelocityTracker to compute accurate velocities.
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
This also adds a test. The velocities computed in the test are the following:
SimpleVelocityTracker: 0.65 with full data, 0.467 with partial data
AndroidVelocityTracker: 1.225 with full data, 0.833 with partial data
Depends on D95645
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D95649
Assignee | ||
Comment 9•4 years ago
|
||
This also adds a test. The velocities computed in the test are the following:
SimpleVelocityTracker: 0.65 with full data, 0.467 with partial data
AndroidVelocityTracker: 1.225 with full data, 0.833 with partial data
Depends on D95650
Updated•4 years ago
|
Assignee | ||
Comment 10•4 years ago
|
||
Assignee | ||
Comment 11•4 years ago
•
|
||
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4c5fdaab5f27
https://hg.mozilla.org/mozilla-central/rev/b4f668a31f18
https://hg.mozilla.org/mozilla-central/rev/bf8313268c20
Description
•