[OpenLayers-Trac] Re: [OpenLayers] #3212: Don't let the browser to zoom or select the map on feature selection

OpenLayers trac-20090302 at openlayers.org
Thu Mar 31 05:30:50 EDT 2011


#3212: Don't let the browser to zoom or select the map on feature selection
-----------------------------+----------------------------------------------
 Reporter:  sbrunner         |       Owner:  erilem      
     Type:  feature          |      Status:  new         
 Priority:  minor            |   Milestone:  2.11 Release
Component:  Handler.Feature  |     Version:  2.10        
 Keywords:  patch, mobile    |       State:  Review      
-----------------------------+----------------------------------------------

Comment(by erilem):

 Stéphane, I attached a new patch ([attachment:noselectmap.2.patch]). My
 changes:

  * {{{touchstart}}} unregisters mouse listeners, just like the Point, Drag
 and Click handlers
  * we register {{{touchmove}}} listener and prevent the browser default,
 this is to prevent Android Safari from doing text selection
  * {{{handle}}} calls {{{Event.stop}}} only on {{{touchstart}}}, this is
 not to change the behavior on non-touch devices
  * I added a test

 Tests pass, and select feature examples work on iPhone and Android.
 Stéphane, please commit if my changes are ok to you.

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


More information about the Trac mailing list