Browse Source

Intercept touch event only if ScrollView exists (#475)

Guy Carmeli 8 years ago
parent
commit
5f228814dd

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

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