зеркало из https://github.com/mozilla/gecko-dev.git
Bug 780336 - BrowserElementScrolling cosumes 7% of profile time on gaia homescreen, but isn't used. r=cjones
This commit is contained in:
Родитель
2c3082317d
Коммит
5720b6585d
|
@ -147,7 +147,11 @@ const ContentPanning = {
|
|||
// root scrollable frame, so don't use our synchronous fallback.
|
||||
return [null, null];
|
||||
|
||||
return [nodeContent, this._generateCallback(nodeContent)];
|
||||
if (nodeContent.scrollMaxX || nodeContent.scrollMaxY) {
|
||||
return [nodeContent, this._generateCallback(nodeContent)];
|
||||
}
|
||||
|
||||
return [null, null];
|
||||
},
|
||||
|
||||
_generateCallback: function cp_generateCallback(content) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче