Please refer to my comment: https://github.com/mozilla-b2g/gaia/pull/11084/files#r5805955 . 

HomeScreen does not move when I reach 2nd page. So, I changed it to 'window' so that I can reuse same 'pan' function for panning in 2nd page.