Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Page remains zoomed when navigating from one page to another #4074

Closed
termleech opened this issue Apr 17, 2012 · 2 comments
Closed

Page remains zoomed when navigating from one page to another #4074

termleech opened this issue Apr 17, 2012 · 2 comments

Comments

@termleech
Copy link

Versions Affected

jQuery Mobile 1.1.0
jQuery 1.6.4

OS Affected (Known)

iOS 5.1
Android 4.0
Android 2.3.7

Steps to Reproduce

  1. Create a multi-page jQuery site
  2. Enable pinch zoom in the app via the meta tag
  3. Open the app up on device
  4. Pinch-zoom into the site
  5. Navigate to another page in app

Expected Results

The new page should reset the zoom level so it looks like a normal page when navigated to

Actual Results

The zoom level remains on the new page so the new page is zoomed in on. This is very confusing to users

Attempted Work Arounds

I have tried temporarily disabling zoom via $.mobile.zoom.disable() on pageHide and then re-enabling zoom via $.mobile.zoom.enable on pageShow and pageBeforeShow. This resolves the zoom issue on Android 4.0 (I did not test 2.3.7) however it does not resolve the issue on iOS. iOS seems to ignore the disabling and re-enabling of zoom.

@toddparker
Copy link
Contributor

Thanks for the detailed report. I'm not sure if/how we would reset zoom between page transitions without overreaching. It's worth thinking about anyway.

@jaspermdegroot
Copy link
Contributor

Closing this since it is a feature request. I added it here https://github.com/jquery/jquery-mobile/wiki/Feature-Requests/_edit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants