Browse Source

Intercept touch event only if ScrollView exists (#475)

Guy Carmeli 8 years ago
parent
commit
ffa5e1e4dc

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/views/CollapsingContentView.java View File

32
 
32
 
33
     @Override
33
     @Override
34
     public boolean dispatchTouchEvent(MotionEvent ev) {
34
     public boolean dispatchTouchEvent(MotionEvent ev) {
35
-        if (scrollViewDelegate != null) {
35
+        if (scrollViewDelegate != null && scrollViewDelegate.hasScrollView()) {
36
             boolean consumed = scrollViewDelegate.didInterceptTouchEvent(ev);
36
             boolean consumed = scrollViewDelegate.didInterceptTouchEvent(ev);
37
             if (consumed) {
37
             if (consumed) {
38
                 return true;
38
                 return true;