mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1231972 - Document how the apz.fling_friction pref is used. r=kats. DONTBUILD for comment change
--HG-- extra : rebase_source : de68c270a64576ddf22ec6395ea0a80fcfe638e7 extra : amend_source : d24ebe08909ae39d7def62278b4c94d336fe700f extra : source : 740993b673df97ac590b5bc481bacefc634919a6
This commit is contained in:
parent
23a4ed497e
commit
b60060e864
@ -194,8 +194,11 @@ using mozilla::gfx::PointTyped;
|
||||
* http://mxr.mozilla.org/mozilla-central/source/layout/style/nsStyleStruct.cpp?rev=21282be9ad95#2462
|
||||
*
|
||||
* \li\b apz.fling_friction
|
||||
* Amount of friction applied during flings.
|
||||
*
|
||||
* Amount of friction applied during flings. This is used in the following
|
||||
* formula: v(t1) = v(t0) * (1 - f)^(t1 - t0), where v(t1) is the velocity
|
||||
* for a new sample, v(t0) is the velocity at the previous sample, f is the
|
||||
* value of this pref, and (t1 - t0) is the amount of time, in milliseconds,
|
||||
* that has elapsed between the two samples.
|
||||
*
|
||||
* \li\b apz.fling_repaint_interval
|
||||
* Maximum amount of time flinging before sending a viewport change. This will
|
||||
|
Loading…
Reference in New Issue
Block a user