Index: trunk/parsers/wikidom/lib/es/es.Surface.js |
— | — | @@ -308,8 +308,8 @@ |
309 | 309 | if ( e.button === 0 ) { |
310 | 310 | clearTimeout( this.mouse.clickTimeout ); |
311 | 311 | var clickPosition = es.Position.newFromEventPagePosition( e ); |
312 | | - if ( !this.mouse.clickPosition |
313 | | - || this.mouse.clickPosition.near( clickPosition, this.hotSpotRadius ) ) { |
| 312 | + if ( this.mouse.clickPosition && |
| 313 | + this.mouse.clickPosition.near( clickPosition, this.mouse.hotSpotRadius ) ) { |
314 | 314 | // Same location, keep counting |
315 | 315 | this.mouse.clicks++; |
316 | 316 | var surface = this; |