Fixes bug where stroke becomes very thin and strokes are sometimes ignored completely depending on event timing.
Merge pull request #30 from mvirkkunen/div-by-zero-fix

Fixes bug where stroke becomes very thin and strokes are sometimes ignored completely depending on event timing.