dgileadi / zepto-page-transitions

HTML5 Page Transitions similar to JQuery Mobile page transitions, but standalone (13k) and using Zepto.js
166 stars 46 forks source link

'FromPage' jumps to the top upon page transition when using history.back() if you have scrolled down #22

Closed Ruffio closed 11 years ago

Ruffio commented 11 years ago

If you have scrolled down on a page and then use history.back(); to transition back to previous page then the 'fromPage' jumps to the top before transition is performed.

'Live' test:

  1. Go to: http://mbrevis.com/admin/
  2. Select 'Layout'
  3. Select 'Sidefod'
  4. Scroll down to bottom
  5. Press 'Tilbage' in top of page (to execute history.back();)
  6. The page jumps to the top and then the transition is performed

Kindly regards

dgileadi commented 11 years ago

Apparently the browser is causing the jump itself. I can't think of a good way to fix it. Let me know if you have any idea; closing for now.