Eric Eric - 5 months ago 48
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


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.


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