How do some web sites disable the browser zoom?


Last Updated:

  1. Ty Webb

    Ty Webb New Member This Topic's Starter

    Joined:
    Jan 14, 2010
    Messages:
    1
    Likes Received:
    0
    Go to m.cnn.com and the browser zoom seems to be disabled. Same with google's mobile site.

    Go to yahoo's[​IMG] mobile site and the zoom is back.

    Anyone know how this is done?
     

    Advertisement
  2. KeithG

    KeithG Well-Known Member

    Joined:
    Nov 15, 2009
    Messages:
    103
    Likes Received:
    3
    On my droid, the yahoo site does not provide zoom widgets.

    I would surmize ...

    Code (Text):
    1.  
    2. if virutalPageWidth > screenWidth:
    3.     enable page zooming
    4. else:
    5.     disable page zooming
    6.  
    Which, would allow any site to avoid zooming as long as it fits the devices screen width without a horizontal scroll bar. It would also explain the abberation of m.yahoo.com having zoom widgets on your device whereas mine does not.
     

Share This Page

Loading...