mono/MonoGame — pull request #2440 by jbeshir (2014-04-28 17:37:14+00:00)
Title: Process hold gestures even if no gesture events are occurring.

This PR fixes a problem wherein hold gestures are not recognised promptly, or sometimes at all.

Currently, new gestures are only checked for when _gestureEvents is non-empty. However, Android at least does not add to _gestureEvents while a touch location stays still, and it seems plausible that other platforms behave similarly.

This causes a hold gesture to not be recognised unless and until the user moved the touch location (at least slightly) at some point after the appropriate time has passed. If the hold is released without moving, the hold gesture is not processed at all. As a result, the hold gesture is unreliable unless the user deliberately waits, then performs a small motion to trigger it.

This commit causes gestures to be processed unconditionally of whether any new gesture events were received, allowing the hold gesture to be recognised and processed properly after the passage of the appropriate amount of time.