[OpenLayers-Trac] Re: [OpenLayers] #3091: get cross device touch dragging while letting mouse events propagate to controls

OpenLayers trac-20090302 at openlayers.org
Wed Feb 23 12:58:34 EST 2011


#3091: get cross device touch dragging while letting mouse events propagate to
controls
----------------------+-----------------------------------------------------
 Reporter:  tschaub   |       Owner:  erilem      
     Type:  bug       |      Status:  new         
 Priority:  critical  |   Milestone:  2.11 Release
Component:  Map       |     Version:  2.10        
 Keywords:  mobile    |       State:  Commit      
----------------------+-----------------------------------------------------

Comment(by tschaub):

 After finding that the strategy above didn't work, we've rearranged things
 to look like this:

 {{{
 map.viewPortDiv
     |
      -- control 1
     |
      -- control 2
     |
      -- map.eventDiv
              |
               -- map.layerContainerDiv
 }}}

 This was we can have controls register for mouse events and not be
 affected by our preventing the default for {{{touchstart}}} in the drag
 handler.  The lesson is (we think) that to have something be draggable on
 Android (i.e. prevent the default scrolling behavior), you can't listen
 for mouse events on children.

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


More information about the Trac mailing list