examples/bower_components/polymer/polymer.js
function(inEvent) {
      var lts = this.lastTouches;
      var x = inEvent.clientX, y = inEvent.clientY;
      for (var i = 0, l = lts.length, t; i < l && (t = lts[i]); i++) {
        // simulated mouse events will be swallowed near a primary touchend
        var dx = Math.abs(x - t.x), dy = Math.abs(y - t.y);
        if (dx <= DEDUP_DIST && dy <= DEDUP_DIST) {
          return true;
        }
      }
    }
function(inEvent) {
      var lts = this.lastTouches;
      var x = inEvent.clientX, y = inEvent.clientY;
      for (var i = 0, l = lts.length, t; i < l && (t = lts[i]); i++) {
        // simulated mouse events will be swallowed near a primary touchend
        var dx = Math.abs(x - t.x), dy = Math.abs(y - t.y);
        if (dx <= DEDUP_DIST && dy <= DEDUP_DIST) {
          return true;
        }
      }
    }
function ( inEvent ) { var lts = this . lastTouches ; var x = inEvent . clientX , y = inEvent . clientY ; for ( var i = 0 , l = lts . length , t ; i < l && ( t = lts [ i ] ) ; i ++ ) { // simulated mouse events will be swallowed near a primary touchend var dx = Math . abs ( x - t . x ) , dy = Math . abs ( y - t . y ) ; if ( dx <= DEDUP_DIST && dy <= DEDUP_DIST ) { return true ; } } }
collide with the global mouse listener
collide with the global mouse listener