Make the Weighted Smoothing algorithm use 'distance' instead of 'velocity'
The time measurements of the tablet events are really unstable, especially when using openGL canvas, which causes the Weighted Smoothing processed lines bended and waggy. This patch makes the algorithm use distance parameter instead of the velocity parameter, which does not depend on time, so does not fluctuate so drastically. BUG:326512
Showing with 32 additions and 21 deletions