{"id":638,"date":"2012-08-24T15:32:36","date_gmt":"2012-08-24T15:32:36","guid":{"rendered":"http:\/\/corbdesign.com\/blog\/?p=638"},"modified":"2012-08-24T15:32:36","modified_gmt":"2012-08-24T15:32:36","slug":"ios-zooming","status":"publish","type":"post","link":"https:\/\/corbinrose.com\/blog\/technology\/ios-zooming\/","title":{"rendered":"iOS zooming"},"content":{"rendered":"\n<p><a href=\"http:\/\/blog.corbdesign.com\/wp-content\/uploads\/2012\/08\/apple_ipad_family_710821_g2.jpeg\"><\/a>Ever have the issue where your iOS devices randomly and\/or inconsistently zooms in on orientation change, regardless of your viewport settings? Well, I&#8217;ve seen it, and I&#8217;ve had enough!<\/p>\n\n\n\n<p>Fix:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> $(document).ready(function (e) {\n 'use strict';\nvar mobile_timer = false;\nif(navigator.userAgent.match(\/iPad\/i)) {\n$('#viewport').attr('content','width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0');\n$(window).bind('gesturestart',function () {\nclearTimeout(mobile_timer);\n$('#viewport').attr('content','width=device-width,minimum-scale=1.0,maximum-scale=10.0');\n}).bind('touchend',function () {\nclearTimeout(mobile_timer);\nmobile_timer = setTimeout(function () {\n$('#viewport').attr('content','width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0');\n},1000);<a href=\"http:\/\/blog.corbdesign.com\/wp-content\/uploads\/2012\/08\/apple_ipad_family_710821_g2.jpeg\">\n<\/a>\n});\n}\n});<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ever have the issue where your iOS devices randomly and\/or inconsistently zooms in on orientation change, regardless of your viewport settings? Well, I&#8217;ve seen it, and I&#8217;ve had enough! Fix:<\/p>\n","protected":false},"author":2,"featured_media":4905,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[28,17],"tags":[],"class_list":["post-638","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","category-technology","clearfix","post-index"],"acf":[],"jetpack_featured_media_url":"https:\/\/corbinrose.com\/blog\/wp-content\/uploads\/2012\/08\/pexels-photo-198192-1.jpeg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/posts\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/comments?post=638"}],"version-history":[{"count":0,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/posts\/638\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/media\/4905"}],"wp:attachment":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/media?parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/categories?post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/tags?post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}