Bug 872561 - Loosening the elementInView and also checking the centre of the element is in view; r=mdas