Fixing chrome mobile pan bug