Fixed dragging selection handles almost always extends the selection.  Accomplished by tracking the change in touchPoint.  A timestamp is only saved when the change in X is greater than 1.0.  This reduces the chance that a small wiggle of the finger triggers another UIGestureRecognizerStateChanged notification.  In addition, reduced the timestamp delta check from 0.5 to 0.25 after observing usual values.  The result is a feeling of better control over dragging handles to change selection. Small added bonus, removed the overhead of creating NSDate objects by using the core primitive class method of NSDate to generate the timestamps.
Fixed dragging selection handles almost always extends the selection.  Accomplished by tracking the change in touchPoint.  A timestamp is only saved when the change in X is greater than 1.0.  This reduces the chance that a small wiggle of the finger triggers another UIGestureRecognizerStateChanged notification.  In addition, reduced the timestamp delta check from 0.5 to 0.25 after observing usual values.  The result is a feeling of better control over dragging handles to change selection. Small added bonus, removed the overhead of creating NSDate objects by using the core primitive class method of NSDate to generate the timestamps.

liulinjian/DTRichTextEditor,fishermenlabs/DTRichTextEditor,programming086/DTRichTextEditor,programming086/DTRichTextEditor,Cocoanetics/DTRichTextEditor,fishermenlabs/DTRichTextEditor,liulinjian/DTRichTextEditor