diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java index 94ce3e85d..5e07b2ddb 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java @@ -1215,8 +1215,12 @@ public boolean onTouchEvent(MotionEvent aEvent) { @Override public boolean onGenericMotionEvent(MotionEvent aEvent) { - GeckoSession session = mSession.getGeckoSession(); - return (session != null) && session.getPanZoomController().onMotionEvent(aEvent) == PanZoomController.INPUT_RESULT_HANDLED; + if (mView != null) { + return super.onGenericMotionEvent(aEvent); + } else { + GeckoSession session = mSession.getGeckoSession(); + return (session != null) && session.getPanZoomController().onMotionEvent(aEvent) == PanZoomController.INPUT_RESULT_HANDLED; + } } private void setPrivateBrowsingEnabled(boolean isEnabled) {