fix a bug where the initial pan allows overpan despite allowLeftOverpan=YES

fix a bug where the initial pan allows overpan despite allowLeftOverpan=YES