Changeset 5698
- Timestamp:
- 01/09/08 04:55:22 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Handler/Click.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Handler/Click.js
r5676 r5698 172 172 /** 173 173 * Method: passesTolerance 174 * Determine whether the event is within the optional pixel tolerance. 174 * Determine whether the event is within the optional pixel tolerance. Note 175 * that the pixel tolerance check only works if mousedown events get to 176 * the listeners registered here. If they are stopped by other elements, 177 * the <pixelTolerance> will have no effect here (this method will always 178 * return true). 175 179 * 176 180 * Returns: … … 179 183 passesTolerance: function(evt) { 180 184 var passes = true; 181 if(this.pixelTolerance ) {185 if(this.pixelTolerance && this.down) { 182 186 var dpx = Math.sqrt( 183 187 Math.pow(this.down.x - evt.xy.x, 2) +
