Skip to content
  • Dmitry Kazakov's avatar
    [FEATURE] Make brush 'speed' sensor work · f3d76c6c
    Dmitry Kazakov authored
    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
    f3d76c6c