fix panning of page outside intended area