Skip to content

Commit

Permalink
popup touchend event stop propagation added
Browse files Browse the repository at this point in the history
  • Loading branch information
xavijam committed Jun 13, 2012
1 parent 38a8733 commit 06ca327
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custompopup.html
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Using CartoDB with Leaflet and custom infowindow</title> <title>Using CartoDB with Leaflet and custom infowindow</title>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> <link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>body,html {width:100%; height:100%; margin:0; padding:0; overflow:hidden;} #map {margin:100px 0 0 0; height:50%;} .leaflet-container {background:#A7BDDE!important;}</style> <style>body,html {width:100%; height:100%; margin:0; padding:0; overflow:hidden;} #map {height:100%;} .leaflet-container {background:#A7BDDE!important;}</style>
<link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.css" /> <link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" /><![endif]--> <!--[if lte IE 8]><link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" /><![endif]-->
<link href="css/cartodb-leaflet.css" rel="stylesheet" type="text/css"> <link href="css/cartodb-leaflet.css" rel="stylesheet" type="text/css">
Expand Down
4 changes: 2 additions & 2 deletions dist/cartodb-popup-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cartodb-popup.js
Expand Up @@ -137,6 +137,7 @@ L.CartoDBPopup = L.Class.extend({
closeButton.innerHTML = 'x'; closeButton.innerHTML = 'x';


L.DomEvent.addListener(closeButton, 'click', this._onCloseButtonClick, this); L.DomEvent.addListener(closeButton, 'click', this._onCloseButtonClick, this);
L.DomEvent.addListener(closeButton, 'touchend', this._onCloseButtonClick, this);
L.DomEvent.disableClickPropagation(closeButton); L.DomEvent.disableClickPropagation(closeButton);
} }


Expand Down

0 comments on commit 06ca327

Please sign in to comment.