Eric Eric - 1 month ago 17
Javascript Question

Cordova prevent webview drag on field focus?

I have these preferences in my config.xml

<preference name="DisallowOverscroll" value="true" />
<preference name="UIWebViewBounce" value="false" />


I also use this CSS on the container holding a field

overflow:hidden;
-webkit-touch-callout:none;
-webkit-user-select:none;
user-select:none;


This disables the scroll BUT if I click/focus a field and drag, my container still drags. How do I disable that? This only happens when I touchdown a field and drag it..

Edit: I removed the UIWebViewBounce preference as it's not supported by Cordova but still the same result.

Answer

Only answering to close. The issue wasn't related, there was a mistake in my code at another level.