From b62533701892c6715260004a3e5e87a80591eb0b Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 3 Apr 2009 01:34:58 +0000 Subject: [PATCH] clear timer for rightclicks so that we don't fire single right click event after double rightclick event. thanks for the excellent find and fix, itbeyond. r=me (Closes #1995) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9175 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Handler/Click.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/OpenLayers/Handler/Click.js b/lib/OpenLayers/Handler/Click.js index 6c9ccd1551..e19319984f 100644 --- a/lib/OpenLayers/Handler/Click.js +++ b/lib/OpenLayers/Handler/Click.js @@ -285,6 +285,10 @@ OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, { window.clearTimeout(this.timerId); this.timerId = null; } + if(this.rightclickTimerId != null) { + window.clearTimeout(this.rightclickTimerId); + this.rightclickTimerId = null; + } }, /**