IO Cordoba long-press shows magnifying text magnification even with text turned off, how to delete it

I have a very strange problem. In my cordova iOS app, I get a pop-up text magnifying glass when I press the app for a long time.

Example:

Screenshot with pick-popover

The bubble at the top is blocked at the top of the screen and follows my x position when moving your finger from side to side.

I tried adding the following css, which people say should fix my problem:

* { -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-touch-callout: none; -webkit-user-select: none; } 

This will not help. Looking at things in the web inspector, I can confirm that this css has been successfully added to everything. I tried a bunch of different variations of the usual touch-callout: none and user-select: none , which all offer and nothing helps.

I also tried removing all javascript and all CSS except for a simple variation of the above, and a magnifying glass still appears.

How can I make him leave? Is there any plugin that can cause this problem? Any help is greatly appreciated.

Cordoba Plugins:

  • com.mbppower.camerapreview
  • Cordova-plugin-status
  • Cordova-plugin-whitelist
  • ion plug-in keyboard
  • org.apache.cordova.camera
  • org.apache.cordova.console
  • org.apache.cordova.device
  • org.apache.cordova.dialogs
  • org.apache.cordova.file
  • org.apache.cordova.file transfer
  • org.apache.cordova.network-information
  • org.apache.cordova.vibration

Cordoba Version: 5.1.1 iPhone 5s with iOS Version: 9.0.1

+16
css textselection ios cordova
Sep 27 '15 at 20:06
source share
2 answers

Thanks for this Automatico! Saved me from much more frustration.

However, since then, it looks like this code has been merged with mainline cordova and you can simply enable it by adding

<preference name="SuppressesLongPressGesture" value="true" /> in config.xml

It worked great for me!

Here is the commit and notes that brought him to

https://github.com/apache/cordova-ios/commit/1ad9951c80dbf97281e763f5f27a9bc8852c0537

+18
Jul 14 '16 at 17:21
source share
— -

Apparently, there is an error in iOS 9 due to which -webkit-user-select: none; does not work. There is a plugin that fixes this

https://github.com/EddyVerbruggen/cordova-plugin-ios-longpress-fix

Thanks to Frederick Wessberg stack overflow

+6
Sep 27 '15 at 20:14
source share



All Articles