зеркало из https://github.com/mozilla/pjs.git
Bug 581088 - Don't zoom to inline elements on double-tap [r=mfinkle]
This commit is contained in:
Родитель
016fe69e82
Коммит
f972030015
|
@ -547,6 +547,9 @@ Content.prototype = {
|
|||
case "Browser:ZoomToPoint": {
|
||||
let rect = null;
|
||||
let element = elementFromPoint(x, y);
|
||||
let win = element.ownerDocument.defaultView;
|
||||
while (element && win.getComputedStyle(element,null).display == "inline")
|
||||
element = element.parentNode;
|
||||
if (element)
|
||||
rect = getBoundingContentRect(element);
|
||||
sendAsyncMessage("Browser:ZoomToPoint:Return", { x: x, y: y, rect: rect });
|
||||
|
|
Загрузка…
Ссылка в новой задаче