gcacace/android-signaturepad — pull request #4 by RobertoEstrada (2014-05-29 10:47:15+00:00)
Title: Fix for signatures with two or more strokes

This pull request fixes a bug with signatures that have more than one stroke. Prior to this bugfix, if a user lifted the finger or the stylus away from the screen the following strokes will only be drawn at minimum width because the velocity was computed as NaN at the beginning of the next stroke and this error was propagated all over the drawing iterations.

Now, if the velocity is computed as NaN it will be reset to zero because this only occurs at the beginning of a new stroke other than first and at that point, velocity is zero.