diff options
| author | Colomban Wendling <unknown> | 2018-10-16 08:00:34 +1100 |
|---|---|---|
| committer | Colomban Wendling <unknown> | 2018-10-16 08:00:34 +1100 |
| commit | 1952e9c4e118ab03e62935d30022568aca506bf9 (patch) | |
| tree | 1db9a4b331b4070b2b1f2de8e95717065333a5b5 /src | |
| parent | e61cd5419bc74260616305a245a5cc2cba9784bc (diff) | |
| download | scintilla-mirror-1952e9c4e118ab03e62935d30022568aca506bf9.tar.gz | |
Backport: Make damping work in ActionDuration.
Backport of changeset 7115:f6d66247a18e.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 57c992a79..3eb2dfc4f 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -101,7 +101,7 @@ void ActionDuration::AddSample(size_t numberActions, double durationOfActions) n const double alpha = 0.25; const double durationOne = durationOfActions / numberActions; - duration = Sci::clamp(alpha * durationOne + (1.0 - alpha) * durationOne, + duration = Sci::clamp(alpha * durationOne + (1.0 - alpha) * duration, minDuration, maxDuration); } |
