зеркало из https://github.com/mozilla/gecko-dev.git
0cd35bc56e
This is similar to GeckoTouchDispatcher from the B2G days: https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/widget/gonk/GeckoTouchDispatcher.cpp The values for the various kTouchResample* constants were taken from the original pref values: https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/gfx/thebes/gfxPrefs.h#l225 There are some extra sources of complexity: - TouchResampler tries hard to generate one outgoing event per incoming event, so that the result code tracking to the Java front-end code works properly. - TouchResampler tries hard to never lose any historicalData information, so that the velocity tracker has a maximum amount of information to work with. - TouchResampler has a "reset to non-resampled state" functionality so that overpredictions are corrected when the finger pauses or when a touch non-move event fires. Differential Revision: https://phabricator.services.mozilla.com/D96795 |
||
---|---|---|
.. | ||
TestTimeConverter.cpp | ||
TestTouchResampler.cpp | ||
moz.build |