getCoalescedEvents() and getPredictedEvents()

Adapted from Smoother Interactions on the Web: getCoalescedEvents(). Only tracks a single isPrimary pointer.