@Override protected boolean onInterceptTouchEventInternal(MotionEvent event, boolean isKeyboardShowing) { // TODO(pedrosimonetti): isKeyboardShowing has the wrong value after // rotating the device. We don't really need to check whether the // keyboard is showing here because Contextual Search's Panel will // be closed, if opened, when the keyboard shows up. Even so, // it would be nice fixing this problem in Chrome-Android. OverlayPanel activePanel = mPanelManager.getActivePanel(); return activePanel != null && activePanel.isPeeking() && activePanel.isCoordinateInsideBar( event.getX() * mPxToDp, activePanel.getFullscreenY(event.getY()) * mPxToDp); }