diff --git a/mobile/app/mobile.js b/mobile/app/mobile.js index e5bd319b6ab..b813b5707e2 100644 --- a/mobile/app/mobile.js +++ b/mobile/app/mobile.js @@ -367,11 +367,11 @@ pref("browser.ui.kinetic.swipeLength", 160); // zooming pref("browser.ui.zoom.pageFitGranularity", 10); // don't zoom to fit by less than 1/10. -// Touch radius +// Touch radius (area around the touch location to look for target elements): pref("browser.ui.touch.left", 8); pref("browser.ui.touch.right", 8); -pref("browser.ui.touch.top", 4); -pref("browser.ui.touch.bottom", 12); +pref("browser.ui.touch.top", 12); +pref("browser.ui.touch.bottom", 4); pref("browser.ui.touch.weight.visited", 120); // percentage // plugins diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index 8811e06c6ef..734d6733efc 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -1960,9 +1960,9 @@ const ElementTouchHelper = { true, /* ignore root scroll frame*/ false); /* don't flush layout */ - let nodes = aWindowUtils.nodesFromRect(aX, aY, this.radius.bottom, + let nodes = aWindowUtils.nodesFromRect(aX, aY, this.radius.top, this.radius.right, - this.radius.top, + this.radius.bottom, this.radius.left, true, false); // return early if the click is just over a clickable element