r93330 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93329‎ | r93330 | r93331 >
Date:22:57, 27 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed multi-click interaction bugs
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -308,8 +308,8 @@
309309 if ( e.button === 0 ) {
310310 clearTimeout( this.mouse.clickTimeout );
311311 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 ) ) {
314314 // Same location, keep counting
315315 this.mouse.clicks++;
316316 var surface = this;

Status & tagging log