Try not set a huge translate when a pan happens. Fixes #2602
Fix the warnings
Change how we work out if a pan is ok.
Merge pull request #2617 from danzel/nobigpan-2602

Nobigpan 2602