Fixed touch-panning inside a popup, closed #452

This commit is contained in:
mourner 2012-02-03 12:59:05 +02:00
parent de78de0fee
commit f46c0263c3
4 changed files with 4 additions and 3 deletions

View File

@ -106,6 +106,7 @@ Leaflet Changelog
* Fixed a bug that caused an error when clicking vector layers under iOS. [#204](https://github.com/CloudMade/Leaflet/issues/204)
* Fixed crash on Android 3+ when panning or zooming (by [@florian](https://github.com/florianf)). [#137](https://github.com/CloudMade/Leaflet/issues/137)
* Fixed a bug that caused the map to pan when touch-panning inside a popup. [#452](https://github.com/CloudMade/Leaflet/issues/452)
## 0.2.1 (2011-06-18)

2
dist/leaflet-src.js vendored
View File

@ -4084,7 +4084,7 @@ L.DomEvent = {
},
disableClickPropagation: function (/*HTMLElement*/ el) {
L.DomEvent.addListener(el, 'mousedown', L.DomEvent.stopPropagation);
L.DomEvent.addListener(el, L.Draggable.START, L.DomEvent.stopPropagation);
L.DomEvent.addListener(el, 'click', L.DomEvent.stopPropagation);
L.DomEvent.addListener(el, 'dblclick', L.DomEvent.stopPropagation);
},

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long

View File

@ -112,7 +112,7 @@ L.DomEvent = {
},
disableClickPropagation: function (/*HTMLElement*/ el) {
L.DomEvent.addListener(el, 'mousedown', L.DomEvent.stopPropagation);
L.DomEvent.addListener(el, L.Draggable.START, L.DomEvent.stopPropagation);
L.DomEvent.addListener(el, 'click', L.DomEvent.stopPropagation);
L.DomEvent.addListener(el, 'dblclick', L.DomEvent.stopPropagation);
},