mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 650817 - Search engines list misinterprets tap and pan [r=mfinkle] DONTBUILD (mobile only)
This commit is contained in:
parent
380315c853
commit
ae903a9fb3
@ -41,8 +41,14 @@ const kBrowserFormZoomLevelMax = 2.0;
|
||||
|
||||
var BrowserSearch = {
|
||||
get _popup() {
|
||||
let popup = document.getElementById("search-engines-popup");
|
||||
popup.addEventListener("TapSingle", function(aEvent) {
|
||||
popup.hidden = true;
|
||||
BrowserUI.doOpenSearch(aEvent.target.getAttribute("label"));
|
||||
}, false);
|
||||
|
||||
delete this._popup;
|
||||
return this._popup = document.getElementById("search-engines-popup");
|
||||
return this._popup = popup;
|
||||
},
|
||||
|
||||
get _list() {
|
||||
@ -75,10 +81,6 @@ var BrowserSearch = {
|
||||
button.setAttribute("crop", "end");
|
||||
button.setAttribute("pack", "start");
|
||||
button.setAttribute("image", aEngine.iconURI ? aEngine.iconURI.spec : null);
|
||||
button.onclick = function() {
|
||||
popup.hidden = true;
|
||||
BrowserUI.doOpenSearch(aEngine.name);
|
||||
}
|
||||
list.appendChild(button);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user