Bug 874917 - Find bar disappears while touch scrolling page

--HG--
extra : rebase_source : 6f50fd8563a27dc29a8bd3044b5dbf5f107947dd
This commit is contained in:
Rodrigo Silveira 2013-05-28 16:11:55 -07:00
parent bc08833c1d
commit 024a3dac83

View File

@ -50,10 +50,6 @@ var FindHelperUI = {
messageManager.addMessageListener("FindAssist:Show", this);
messageManager.addMessageListener("FindAssist:Hide", this);
// Listen for pan events happening on the browsers
Elements.browsers.addEventListener("PanBegin", this, false);
Elements.browsers.addEventListener("PanFinished", this, false);
// Listen for events where form assistant should be closed
Elements.tabList.addEventListener("TabSelect", this, true);
Elements.browsers.addEventListener("URLChanged", this, true);
@ -91,16 +87,6 @@ var FindHelperUI = {
this.hide();
break;
case "PanBegin":
this._container.style.visibility = "hidden";
this._textbox.collapsed = true;
break;
case "PanFinished":
this._container.style.visibility = "visible";
this._textbox.collapsed = false;
break;
case "keydown":
if (aEvent.keyCode == Ci.nsIDOMKeyEvent.DOM_VK_RETURN) {
if (aEvent.shiftKey) {