Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js b/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
| index 7db48ee418bcb46a860b58299d228ad44c51ddc6..01318166a2b3dbcf40729bf433e067a00a73a00f 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js |
| @@ -380,9 +380,9 @@ WebInspector.ViewportControl.prototype = { |
| }, |
| /** |
| - * @param {boolean} isUserGesture |
| + * @param {boolean} isScroll |
| */ |
| - _innerRefresh: function(isUserGesture) |
| + _innerRefresh: function(isScroll) |
|
lushnikov
2016/07/19 02:26:19
we can now remove this argument altogether
luoe
2016/07/19 17:52:33
Done.
|
| { |
| if (!this._visibleHeight()) |
| return; // Do nothing for invisible controls. |
| @@ -416,7 +416,7 @@ WebInspector.ViewportControl.prototype = { |
| var oldFirstVisibleIndex = this._firstVisibleIndex; |
| var oldLastVisibleIndex = this._lastVisibleIndex; |
| - var shouldStickToBottom = !isUserGesture && this._stickToBottom && this._scrolledToBottom; |
| + var shouldStickToBottom = this._stickToBottom && this._scrolledToBottom; |
| if (shouldStickToBottom) { |
| this._lastVisibleIndex = this._itemCount - 1; |
| @@ -568,7 +568,7 @@ WebInspector.ViewportControl.prototype = { |
| */ |
| _onScroll: function(event) |
| { |
| - this._innerRefresh(event.isTrusted); |
| + this._innerRefresh(true); |
| }, |
| /** |