Permalink
Browse files

popup touchend event stop propagation added

  • Loading branch information...
1 parent 38a8733 commit 06ca3277adb293af2c5a245babdf3cbef0dade0e @xavijam xavijam committed Jun 13, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 custompopup.html
  2. +2 −2 dist/cartodb-popup-min.js
  3. +1 −0 dist/cartodb-popup.js
View
@@ -5,7 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Using CartoDB with Leaflet and custom infowindow</title>
<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" />
<!--[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">

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -137,6 +137,7 @@ L.CartoDBPopup = L.Class.extend({
closeButton.innerHTML = 'x';
L.DomEvent.addListener(closeButton, 'click', this._onCloseButtonClick, this);
+ L.DomEvent.addListener(closeButton, 'touchend', this._onCloseButtonClick, this);
L.DomEvent.disableClickPropagation(closeButton);
}

0 comments on commit 06ca327

Please sign in to comment.