vendor/ember-leaflet-cartodb/cartodb_noleaflet.js
function onDown(e) {

        // Prevent interaction offset calculations happening while
        // the user is dragging the map.
        //
        // Store this event so that we can compare it to the
        // up event
        _downLock = true;
        var _e = (e.type !== "MSPointerDown" && e.type !== "pointerdown" ? e : e.originalEvent); 
        _d = wax.u.eventoffset(_e);
        if (e.type === 'mousedown') {
            bean.add(document.body, 'click', onUp);
            // track mouse up to remove lockDown when the drags end
            bean.add(document.body, 'mouseup', dragEnd);

        // Only track single-touches. Double-touches will not affect this
        // control
        } else if (e.type === 'touchstart' && e.touches.length === 1) {
            //GMaps fix: Because it's triggering always mousedown and click, we've to remove it
            bean.remove(document.body, 'click', onUp); //GMaps fix

            //When we finish dragging, then the click will be 
            bean.add(document.body, 'click', onUp);
            bean.add(document.body, 'touchEnd', dragEnd);
        } else if (e.originalEvent.type === "MSPointerDown" && e.originalEvent.touches && e.originalEvent.touches.length === 1) {
          // Don't make the user click close if they hit another tooltip
            bean.fire(interaction, 'off');
            // Touch moves invalidate touches
            bean.add(parent(), mspointerEnds);
        } else if (e.type === "pointerdown" && e.originalEvent.touches && e.originalEvent.touches.length === 1) {
            // Don't make the user click close if they hit another tooltip
            bean.fire(interaction, 'off');
            // Touch moves invalidate touches
            bean.add(parent(), pointerEnds);
        } else {
            // Fix layer interaction in IE10/11 (CDBjs #139)
            // Reason: Internet Explorer is triggering pointerdown when you click on the marker, and other browsers don't.
            // Because of that, _downLock was active and it believed that you're dragging the map, instead of dragging the marker
            _downLock = false;
        }

    }
function onDown(e) {

        // Prevent interaction offset calculations happening while
        // the user is dragging the map.
        //
        // Store this event so that we can compare it to the
        // up event
        _downLock = true;
        var _e = (e.type !== "MSPointerDown" && e.type !== "pointerdown" ? e : e.originalEvent); 
        _d = wax.u.eventoffset(_e);
        if (e.type === 'mousedown') {
            bean.add(document.body, 'click', onUp);
            // track mouse up to remove lockDown when the drags end
            bean.add(document.body, 'mouseup', dragEnd);

        // Only track single-touches. Double-touches will not affect this
        // control
        } else if (e.type === 'touchstart' && e.touches.length === 1) {
            //GMaps fix: Because it's triggering always mousedown and click, we've to remove it
            bean.remove(document.body, 'click', onUp); //GMaps fix

            //When we finish dragging, then the click will be 
            bean.add(document.body, 'click', onUp);
            bean.add(document.body, 'touchEnd', dragEnd);
        } else if (e.originalEvent.type === "MSPointerDown" && e.originalEvent.touches && e.originalEvent.touches.length === 1) {
          // Don't make the user click close if they hit another tooltip
            bean.fire(interaction, 'off');
            // Touch moves invalidate touches
            bean.add(parent(), mspointerEnds);
        } else if (e.type === "pointerdown" && e.originalEvent.touches && e.originalEvent.touches.length === 1) {
            // Don't make the user click close if they hit another tooltip
            bean.fire(interaction, 'off');
            // Touch moves invalidate touches
            bean.add(parent(), pointerEnds);
        } else {
            // Fix layer interaction in IE10/11 (CDBjs #139)
            // Reason: Internet Explorer is triggering pointerdown when you click on the marker, and other browsers don't.
            // Because of that, _downLock was active and it believed that you're dragging the map, instead of dragging the marker
            _downLock = false;
        }

    }
function onDown ( e ) { // Prevent interaction offset calculations happening while // the user is dragging the map. // // Store this event so that we can compare it to the // up event _downLock = true ; var _e = ( e . type !== "MSPointerDown" && e . type !== "pointerdown" ? e : e . originalEvent ) ; _d = wax . u . eventoffset ( _e ) ; if ( e . type === 'mousedown' ) { bean . add ( document . body , 'click' , onUp ) ; // track mouse up to remove lockDown when the drags end bean . add ( document . body , 'mouseup' , dragEnd ) ; // Only track single-touches. Double-touches will not affect this // control } else if ( e . type === 'touchstart' && e . touches . length === 1 ) { //GMaps fix: Because it's triggering always mousedown and click, we've to remove it bean . remove ( document . body , 'click' , onUp ) ; //GMaps fix //When we finish dragging, then the click will be  bean . add ( document . body , 'click' , onUp ) ; bean . add ( document . body , 'touchEnd' , dragEnd ) ; } else if ( e . originalEvent . type === "MSPointerDown" && e . originalEvent . touches && e . originalEvent . touches . length === 1 ) { // Don't make the user click close if they hit another tooltip bean . fire ( interaction , 'off' ) ; // Touch moves invalidate touches bean . add ( parent ( ) , mspointerEnds ) ; } else if ( e . type === "pointerdown" && e . originalEvent . touches && e . originalEvent . touches . length === 1 ) { // Don't make the user click close if they hit another tooltip bean . fire ( interaction , 'off' ) ; // Touch moves invalidate touches bean . add ( parent ( ) , pointerEnds ) ; } else { // Fix layer interaction in IE10/11 (CDBjs #139) // Reason: Internet Explorer is triggering pointerdown when you click on the marker, and other browsers don't. // Because of that, _downLock was active and it believed that you're dragging the map, instead of dragging the marker _downLock = false ; } }
A handler for 'down' events - which means `mousedown` and `touchstart`
A handler for down events - which means mousedown and touchstart