mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-20 16:08:52 +00:00
parent
ada2e1edca
commit
8f2ddf4542
@ -16,7 +16,6 @@ import android.os.Environment;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import android.text.TextUtils;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@ -370,7 +369,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
public void setMessagingEnabled(WebView view, boolean enabled) {
|
||||
((RNCWebView) view).setMessagingEnabled(enabled);
|
||||
}
|
||||
|
||||
|
||||
@ReactProp(name = "incognito")
|
||||
public void setIncognito(WebView view, boolean enabled) {
|
||||
// Remove all previous cookies
|
||||
@ -947,23 +946,6 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
this.hasScrollEvent = hasScrollEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent event){
|
||||
|
||||
// Allow scrolling inside ScrollView
|
||||
if (event.findPointerIndex(0) == -1) {
|
||||
return super.onTouchEvent(event);
|
||||
}
|
||||
|
||||
if (event.getPointerCount() >= 1) {
|
||||
requestDisallowInterceptTouchEvent(true);
|
||||
} else {
|
||||
requestDisallowInterceptTouchEvent(false);
|
||||
}
|
||||
|
||||
return super.onTouchEvent(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onHostResume() {
|
||||
// do nothing
|
||||
|
Loading…
x
Reference in New Issue
Block a user