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 | 41336bc98cac31d71e16bdfec71f1b40148305e5 (patch) | |
tree | 19a7652020fd548f31829b448e5fefd6fb050060 /src/Document.cxx | |
parent | bf400a65a12475fd60c8a9a213a8bc9956cdeb5f (diff) | |
download | scintilla-mirror-41336bc98cac31d71e16bdfec71f1b40148305e5.tar.gz |
Make damping work in ActionDuration.
Diffstat (limited to 'src/Document.cxx')
-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 ab29eb423..0567c7a04 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -98,7 +98,7 @@ void ActionDuration::AddSample(size_t numberActions, double durationOfActions) n const double alpha = 0.25; const double durationOne = durationOfActions / numberActions; - duration = std::clamp(alpha * durationOne + (1.0 - alpha) * durationOne, + duration = std::clamp(alpha * durationOne + (1.0 - alpha) * duration, minDuration, maxDuration); } |