Eric Eric - 1 year ago 98
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download