Bug 1217196 - (Part 2) Remove touch event handling from BrowserToolbar. r=mcomella

This code seems to have handled scroll events that started on the toolbar in the past.
But this does not work anymore (for quite some time)  and in fact breaks touch event
handling (See bug 1046591 for a side-effect of only partially consuming events here).
This commit is contained in:
Sebastian Kaspari 2015-11-05 16:11:00 +01:00
parent 448bde6acf
commit ab23289042

View File

@ -373,17 +373,6 @@ public abstract class BrowserToolbar extends ThemedRelativeLayout
return urlDisplayLayout.dismissSiteIdentityPopup();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
// If the motion event has occurred below the toolbar (due to the scroll
// offset), let it pass through to the page.
if (event != null && event.getY() > getHeight() + ViewHelper.getTranslationY(this)) {
return false;
}
return super.onTouchEvent(event);
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);