Leaflet Click-Event on Sencha Touch

Sencha Touch demo app showing the click-event problem on a leaflet map.

by vinayaknb

HTML

<script src="http://extjs.cachefly.net/touch/sencha-touch-2.0.1.1/sencha-touch-all-debug.js"></script>
<link rel="stylesheet" href="http://extjs.cachefly.net/touch/sencha-touch-2.0.1.1/resources/css-debug/sencha-touch.css">
<script src="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.css">

JavaScript

Ext.application({
    name: 'LeafletMapDemo',

    // launch function is called as soon as app is ready
    launch: function() {
        Ext.Viewport.add(
            Ext.create('Ext.Container', { id: 'mapcanvas', width: '100%', height: '400px' })
        );
        
        var map = L.map('mapcanvas').setView([47.36865, 8.539183], 13);
        var layer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
        
        map.on('click', function() {
            console.log('Click-Event on map / Time: ' + Date.now());
        });
    }
});


var horde = gremlins.createHorde()
horde.unleash();