Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: David Mark Newsgroups: comp.lang.javascript Subject: Re: know its ipad Date: Sun, 9 Oct 2011 18:35:53 -0700 (PDT) Organization: http://groups.google.com Lines: 22 Message-ID: <20892229.2514.1318210553787.JavaMail.geo-discussion-forums@yqcs10> References: <0tWdnZXtqdlWroDTnZ2dnUVZ_jadnZ2d@westnet.com.au> <26eef53d-aee6-4162-88fc-4855bd51a555@p10g2000prf.googlegroups.com> <4f034459-6218-4cd1-8125-1b9b70da4b2c@j9g2000prj.googlegroups.com> Reply-To: comp.lang.javascript@googlegroups.com NNTP-Posting-Host: 75.186.15.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1318210676 5835 127.0.0.1 (10 Oct 2011 01:37:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 10 Oct 2011 01:37:56 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.186.15.4; posting-account=WTFS-AoAAABsiGRzE4MmIarYuIMkGBCZ User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:7158 On Wednesday, July 13, 2011 3:25:31 AM UTC-4, Andrew Poulos wrote: > On 13/07/2011 4:31 PM, RobG wrote: > > On Jul 13, 4:29 pm, RobG wrote: > > [...] > >> You should be testing for touch support, not what the device is. > > > > Because I know you're going to ask: > > > > Detecting support for event types > > > http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/93e05bc723164080/17d5759265e496fe?lnk=gst&q=detect+touch+support#17d5759265e496fe > > So a browser that supports touch events won't claim to support touch > events when the browser is on a device that can't send touch events. Is > that true? > No. Chrome on the desktop "supports" touch events, regardless of the hardware. See the My Library attachTouchListeners add-on. It's a simple example of handling mouse and (single) touch events with a single API. Only time it's needed is for drag and drop interfaces (a relative rarity on the Web).