Chromium Code Reviews| Index: third_party/WebKit/Source/core/input/ScrollManager.cpp |
| diff --git a/third_party/WebKit/Source/core/input/ScrollManager.cpp b/third_party/WebKit/Source/core/input/ScrollManager.cpp |
| index 2ec9de28fe33891ae1d881337a6d7b6ba78c3cd7..9a9acccddcf6cc532c0db03ec5a28aab0c871442 100644 |
| --- a/third_party/WebKit/Source/core/input/ScrollManager.cpp |
| +++ b/third_party/WebKit/Source/core/input/ScrollManager.cpp |
| @@ -87,6 +87,9 @@ AutoscrollController* ScrollManager::GetAutoscrollController() const { |
| static bool CanPropagate(const ScrollState& scroll_state, |
| const Element& element) { |
| + if (!element.GetLayoutBox()->GetScrollableArea()) |
|
chrishtr
2017/08/25 20:55:06
Why did you need to change this?
sunyunjia
2017/08/25 21:19:44
This is a bug in the previous patch--the scroll-ch
|
| + return true; |
| + |
| return (scroll_state.deltaXHint() == 0 || |
| element.GetComputedStyle()->ScrollBoundaryBehaviorX() == |
| EScrollBoundaryBehavior::kAuto) && |