Skip to content

Commit

Permalink
Revert "Merge pull request #1416 from ahocevar/buttonclick-mobile"
Browse files Browse the repository at this point in the history
This reverts commit 9539afa, reversing
changes made to 541e65b.
  • Loading branch information
ahocevar committed Dec 17, 2014
1 parent 9539afa commit 28fdd52
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/OpenLayers/Events/buttonclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ OpenLayers.Events.buttonclick = OpenLayers.Class({
}
} else if (this.startEvt) {
if (this.completeRegEx.test(evt.type)) {
delete this._cancelCount;
var pos = OpenLayers.Util.pagePosition(button);
var viewportElement = OpenLayers.Util.getViewportElement();
var scrollTop = window.pageYOffset || viewportElement.scrollTop;
Expand All @@ -197,16 +196,12 @@ OpenLayers.Events.buttonclick = OpenLayers.Class({
});
}
if (this.cancelRegEx.test(evt.type)) {
++this._cancelCount;
if (this._cancelCount > 1) {
delete this.startEvt;
}
delete this.startEvt;
}
OpenLayers.Event.stop(evt);
propagate = false;
}
if (this.startRegEx.test(evt.type)) {
this._cancelCount = 0;
this.startEvt = evt;
OpenLayers.Event.stop(evt);
propagate = false;
Expand Down

0 comments on commit 28fdd52

Please sign in to comment.