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
This commit is contained in:
euzuro
2009-04-03 01:34:58 +00:00
parent 1bf80712a6
commit b625337018

View File

@@ -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;
}
},
/**