[OpenLayers-Trac] Re: [OpenLayers] #3228: Double tap on Android select the map

OpenLayers trac-20090302 at openlayers.org
Thu Jan 26 08:15:45 EST 2012


#3228: Double tap on Android select the map
----------------------+-----------------------------------------------------
 Reporter:  sbrunner  |       Owner:  tschaub     
     Type:  feature   |      Status:  new         
 Priority:  minor     |   Milestone:  2.12 Release
Component:  Events    |     Version:  2.10        
 Keywords:  mobile    |       State:  Review      
----------------------+-----------------------------------------------------

Comment(by gregers):

 I think the patch is a bit scary. First of all, we don't know that the
 device has touch capabilities just because the browser exposes touch
 events. It seems to work today, but we don't know what browser vendors do
 in the future. Chrome exposed the touch events when they first implemented
 them (http://code.google.com/p/chromium/issues/detail?id=36415), and that
 resulted in our users with chrome could not use the mouse (we had a
 similar touch event check in our own code). Luckily Chrome decided to
 disable touch events by default. I asked if w3c could add a note that
 touch events should be hidden for devices without touch capabilities in
 touch events spec, but they didn't add it. The risk of a new browser
 exposing touch events is pretty low, but the consequence of this happening
 is really bad (none of their users can use the mouse). With todays
 browsers fast release cycles, the problem can arise quickly mid OpenLayers
 releases.

 Also, what about devices with both touch and mouse capabilities? There are
 several on the market already
 (http://www.asus.com/Eee/Eee_Pad/Eee_Pad_Transformer_TF101/). Do we want
 to force these users to only use the touch capabilities?

 Sorry that I don't have a better solution at hand, but I don't have an
 Android test device :( How about an option to not bind the mouse events?
 That would make it easy to turn off if it becomes a problem in the future?

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3228#comment:10>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list