| Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
|
| index a5a469265dacbd2794ad807c1206ba97d3e14922..092fc26cfc0e0c01422f75300816b0d2d5095612 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
|
| @@ -452,8 +452,9 @@ public class ToolbarPhone extends ToolbarLayout
|
|
|
| @Override
|
| public boolean onTouchEvent(MotionEvent ev) {
|
| - // Forward touch events to the NTP if the toolbar is moved away.
|
| - if (mNtpSearchBoxTranslation.y < 0) {
|
| + // Forward touch events to the NTP if the toolbar is moved away but the search box hasn't
|
| + // reached the top of the page yet.
|
| + if (mNtpSearchBoxTranslation.y < 0 && mLocationBar.getTranslationY() > 0) {
|
| NewTabPage newTabPage = getToolbarDataProvider().getNewTabPageForCurrentTab();
|
|
|
| // No null check -- the toolbar should not be moved if we are not on an NTP.
|
|
|