зеркало из https://github.com/mozilla/pjs.git
Bug 563759 - Incorrect arguments to nodesFromRect [r=vingtetun]
This commit is contained in:
Родитель
6ed4be569b
Коммит
4e0e3efa26
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче