[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 08:56:04 EST 2011
#3091: get cross device touch dragging while letting mouse events propagate to
controls
----------------------+-----------------------------------------------------
Reporter: tschaub | Owner:
Type: bug | Status: new
Priority: critical | Milestone: 2.11 Release
Component: Map | Version: 2.10
Keywords: mobile | State: Review
----------------------+-----------------------------------------------------
Comment(by tschaub):
Changes in the patch:
* EventPane.html - We now fire the events on the map's event pane instead
of the layer's event pane because the former is not a parent of the
latter.
* PanZoom.html - Because map events are observed on a sibling of the
controls, we no longer get mouseup on the mouse events.
* Drag.html - These test changes test the changes made to the drag
handler (we stop touchstart instead of touchmove).
* Map.js - In order to get mouse events on controls, we listen for
browser events on a sibling rather than a parent of the control elements.
This means we can prevent the default behavior of touch events (or other
mouse events) on the map and still get mouse events on the controls (and
vice versa).
* Drag.js - To prevent scrolling on both Android and iOS, we prevent the
default for touchstart instead of touchmove.
--
Ticket URL: <http://trac.openlayers.org/ticket/3091#comment:5>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list