Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9019035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:40:47+00:00 2026-06-16T04:40:47+00:00

I am trying to implement a mobile website with the following appearance: a fixed

  • 0

I am trying to implement a mobile website with the following appearance:

  1. a fixed header
  2. scrollable, zoomable content
  3. content zoomed out when page is first loaded

I have been experimenting with IScroll 4 and the results seem good but there is one problem that I can’t find a way around. The contents of my pages are user-generated html tables which are often wider than the screen. I would like the full width of the table to be visible when the user lands on the page. They can then zoom in if they want to.

If you look at the IScroll zoom demo in a mobile browser it demonstrates the problem. The page content is wider than the screen and it’s not possible to zoom out, only zoom in.

Changing the initial-scale in the viewport meta tag doesn’t help as the whole page, including the header, gets zoomed out:

<meta name="viewport" content="width=device-width, initial-scale=0.5, user-scalable=yes, minimum-scale=0.5, maximum-scale=1.0">

(the header will eventually be a JQueryMobile element which I don’t want to mess with).

And modifying the zoomMin setting in iscroll.js (v4.2.2, line 119) from 1 to something smaller (e.g. 0.5) breaks things:

// Zoom
zoom: false,
zoomMin: 1,
zoomMax: 4, 

You can zoom out further but the content then gets stuck and you can’t resize it without reloading the page.

Does anyone know a way around this? I’m happy to try other frameworks if necessary.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:40:48+00:00Added an answer on June 16, 2026 at 4:40 am

    To allow zooming out, you can use the zoomMin and zoomMax that you identified, but do it when you instantiate iscroll, rather than modifying iscroll.js:

     <script type="text/javascript">
        var myScroll;
        function loaded() {
           myScroll = new iScroll('wrapper',
                           { zoom:true, onBeforeScrollStart: null, 
                             zoomMin:0.5, zoomMax: 6 });
        }
    
        document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
        document.addEventListener('DOMContentLoaded', loaded, false);
    </script>
    

    I also found I needed to explicitly set the width of the ‘scroller’ div, like so:

    $('#scroller').width(your_width);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been experimenting with jQuery Mobile. I am trying to implement the following When
I'm trying to implement swiping gestures for mobile devices in HTML/CSS & Javascript. It's
I am trying to implement a javascript toggle effect for my small or mobile
I am new to jQuery Mobile and i am trying to implement the sample
I am trying to implement Content Providers and Cursor Loaders to get away from
I'm trying to implement modal window on my page. Idea is to display a
Iam trying to implement the Google wallet digital goods api for mobile web version
I am trying to implement a mobile solution to a web app I am
I'm working on a mobile view of our site. I'm trying to implement JQuery
I am trying to implement application that is supported to android,iphone,blackberry,windows mobile,symbian, webos (palm).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.