Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 6ba3881

Browse files
MortimerGorobluemarvin
authored andcommittedDec 13, 2019
Do not forward motion events to GeckoSession when library panels are visible in the window (#2476)
1 parent e14e595 commit 6ba3881

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,12 @@ public boolean onTouchEvent(MotionEvent aEvent) {
12151215

12161216
@Override
12171217
public boolean onGenericMotionEvent(MotionEvent aEvent) {
1218-
GeckoSession session = mSession.getGeckoSession();
1219-
return (session != null) && session.getPanZoomController().onMotionEvent(aEvent) == PanZoomController.INPUT_RESULT_HANDLED;
1218+
if (mView != null) {
1219+
return super.onGenericMotionEvent(aEvent);
1220+
} else {
1221+
GeckoSession session = mSession.getGeckoSession();
1222+
return (session != null) && session.getPanZoomController().onMotionEvent(aEvent) == PanZoomController.INPUT_RESULT_HANDLED;
1223+
}
12201224
}
12211225

12221226
private void setPrivateBrowsingEnabled(boolean isEnabled) {

0 commit comments

Comments
 (0)
This repository has been archived.