Add check is panning is horizontal to avoid scroll issues