Fix bug in determining whether new pan position is outside anchor.