{"id":1399,"date":"2011-10-08T18:25:18","date_gmt":"2011-10-08T22:25:18","guid":{"rendered":"https:\/\/www.webomator.com\/?p=1399"},"modified":"2011-10-08T18:25:18","modified_gmt":"2011-10-08T22:25:18","slug":"how-you-can-help-me-support-your-mobile-device-in-the-future-that-never-was","status":"publish","type":"post","link":"https:\/\/www.webomator.com\/wordpress\/2011\/10\/08\/how-you-can-help-me-support-your-mobile-device-in-the-future-that-never-was\/","title":{"rendered":"How you can help me support your mobile device in the Future That Never Was"},"content":{"rendered":"<div style=\"width:450px;margin-left:25px;\">\n<p align=\"left\">A couple of years ago, when I put together my <a href=\"http:\/\/shop.webomator.com\/retropolis\/\" target=\"_blank\" rel=\"noopener noreferrer\">Retropolis web site<\/a>, I had no idea that there would be a problem there for users who were using touch sensitive mobile devices. Since I figured that out it has bothered me whenever I&#8217;ve had a moment to be bothered.<\/p>\n<p align=\"left\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webomator.com\/grafx2\/blog\/retropolis_mobile_devices.jpg\" alt=\"Mobile Devices in a retro futuristic world\" width=\"295\" height=\"329\" style=\"float:right;margin:4px;margin-right:-25px;\">The problem is that my spiffy dropdown menus scroll down when you pass your mouse over them. This is a really neat thing, for desktops and laptops, while it&#8217;s a disaster on those devices that don&#8217;t understand the concept of a hovering pointer. Which is every touch device, I&#8217;m afraid.<\/p><p align=\"left\">The sorry truth is that I&#8217;m sure the main navigation at Retropolis just hasn&#8217;t worked for folks who came there with their iPad, their Android or Blackberry smartphone, or one of the countless numbers of other mobile devices.<\/p>\n<p align=\"left\">I <em>may<\/em> have fixed that today; I can&#8217;t be certain (because I&#8217;ve got no actual mobile devices to test with*) but it seems sound.<\/p>\n<p align=\"left\">I adopted the logic from a <a href=\"http:\/\/notnotmobile.appspot.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">clever Python script.<\/a> The deal is, you don&#8217;t want to have to selectively identify <em>every mobile device in the universe<\/em>. There are too many; there are more every day; and any bit of Javascript that tries to keep up to date will be as big as a phone book before you know it.<\/p>\n<p align=\"left\">On the other hand, there are very few <em>desktop operating systems<\/em>. If you check for each of those, almost anything that&#8217;s left is a phone or tablet. There are some exceptions &#8211; the iPhone and iPad actually include the word &quot;Mac OS&quot; in their user agent strings (curse you, iDevices!) so you need to do a little additional screening to weed that out, as shown in the post above. But on the whole the logic works, so I made up my own little version in Javascript.<\/p>\n<p align=\"left\">At the moment those menus <em>should<\/em> behave properly whether you&#8217;re on a desktop\/laptop, or on a mobile device. But like I said I can&#8217;t do a lot of testing since at the moment I&#8217;m limited to Windows, plus a little user agent spoofing.<\/p>\n<p align=\"left\" style=\"margin-top:8px;\"><a href=\"http:\/\/shop.webomator.com\/retropolis\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webomator.com\/grafx2\/blog\/Retropolis_Art.jpg\" alt=\"The Retropolis web site\" width=\"296\" height=\"400\" border=\"0\" style=\"float:right;margin:12px;margin-right:-12px;\"><\/a>So if you&#8217;re using an iPad or an Android tablet, some other tablet, or a smartphone (or even an unusual operating system) you could test that for me by <a href=\"http:\/\/shop.webomator.com\/retropolis\/\" target=\"_blank\" rel=\"noopener noreferrer\">visiting Retropolis<\/a> and trying to use the dropdown menu below the header on each page.<\/p>\n<p align=\"left\">If you&#8217;re using a desktop computer the menus should drop down when you pass your mouse over them. If you&#8217;re using a mobile device, you should be able to bring the menu down by clicking on it. That&#8217;s all there is to it (I hope!)<\/p>\n<p align=\"left\">You can enter your results in the comments here if you like; I&#8217;d like to know what device you used, what browser you used, and how the menus behaved.<\/p>\n<p align=\"left\">What I hate in Safari &#8211; when I&#8217;m pretending to be an iPad &#8211; is that the menus pop down lower than on a desktop. But that&#8217;s a lot better than having them fail entirely, isn&#8217;t it?<\/p>\n<p align=\"left\"><em>*although I do have a fantastic 1947 Stromberg-Carlson telephone; so, you know, eat your heart out.<\/em><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A couple of years ago, when I put together my Retropolis web site, I had no idea that there would be a problem there for users who were using touch sensitive mobile devices. Since I figured that out it has bothered me whenever I&#8217;ve had a moment to be bothered. The problem is that my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,15],"tags":[],"class_list":["post-1399","post","type-post","status-publish","format-standard","hentry","category-web-development","category-works-in-progress"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/posts\/1399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1399"}],"version-history":[{"count":0,"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/posts\/1399\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webomator.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}