Bug 630594 - Click delay should be disabled if the page is not zoomable [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2011-02-10 14:44:49 +01:00
parent 1380bb0ad7
commit 7acb7172c3

View File

@ -1530,7 +1530,13 @@ const ContentTouchHandler = {
this.tapOver(aEvent.clientX, aEvent.clientY);
break;
case "TapUp":
this.tapUp(aEvent.clientX, aEvent.clientY);
if (Browser.selectedTab.allowZoom) {
this.tapUp(aEvent.clientX, aEvent.clientY);
}
else {
this.tapSingle(aEvent.clientX, aEvent.clientY, aEvent.modifiers);
aEvent.preventDefault();
}
break;
case "TapSingle":
this.tapSingle(aEvent.clientX, aEvent.clientY, aEvent.modifiers);