Cordova iOS LongPress Fix Pluginby Eddy Verbruggen - @eddyverbruggen
DescriptionApple thought it'd be nice to show a magnifying glass when longpressing the webview on iOS9.
Don't like it? This plugin removes it!
$ cordova plugin add cordova-plugin-ios-longpress-fix
<gap:plugin name="cordova-plugin-ios-longpress-fix" source="npm" />
UsageIt just works, and will proudly shout that at the XCode console when it does.
3D TouchYou can also suppress 3D Touch longpresses (those will also popup the magnifying glass), but since it requires a bit of caution I've made it optional.
The caveat is
onclicktaps must be completed in under 80ms (otherwise they are hijacked by this plugin) which is too short for most users. But if you're using
ontouchendthere's no problem.
If you want to enable this feature, add this to
<preference name="Suppress3DTouch" value="true" />