Add conversion methods between x coordinates and dates
Fix pan bug where items would jump when you start panning