Improved datalist handling of pagination. Added globals to track touch and context events.