Merge pull request #857 from faegi/featureClickPatch

Clear cached mousedown/up positions used for distinguishing between (fix #856).
This commit is contained in:
ahocevar
2013-02-12 01:46:30 -08:00
2 changed files with 38 additions and 1 deletions

View File

@@ -351,6 +351,11 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
if(dpx <= this.clickTolerance) {
this.callback(key, args);
}
// we're done with this set of events now: clear the cached
// positions so we can't trip over them later (this can occur
// if one of the up/down events gets eaten before it gets to us
// but we still get the click)
this.up = this.down = null;
} else {
this.callback(key, args);
}