Last round of left click checks added following r769 and r770.

git-svn-id: http://svn.openlayers.org/branches/openlayers/1.0@771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-06-26 15:46:46 +00:00
parent 7bbfffa6d6
commit d5f36de60f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -111,6 +111,7 @@ OpenLayers.Control.PanZoom.prototype =
* @param {event} evt
*/
buttonDown: function (evt) {
if (!Event.isLeftClick(evt)) return;
var slide = this.map.getResolution() * this.slideFactor;
var center = this.map.getCenter();