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