Skip to content
Commit f3d76c6c authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

[FEATURE] Make brush 'speed' sensor work

Implemented a complex smoothing algorithm for speed sensor,
which makes Speed work almost perfectly.

The smoothing is two-stage:
1) Calculate the distance of the path connecting last 10 points
   (but not longer than 300px).
2) Divide the distance by time value and smooth the result further
   with 10 previous values

BUG:325423
Fixes:T426
CC:kimageshop@kde.org
parent 411067b1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment