mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
448bde6acf
commit
ab23289042
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user