IOs Cordova long-press shows text-select magnifying glass even with text-selection disabled, how to remove?

后端 未结 2 1301
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 20:00

I have a very weird problem. In my cordova app on iOS I am getting a pop-up text-select magnifying glass when I long-press anywhere in the app.

Example:

2条回答
  •  情深已故
    2020-12-15 20:43

    Apparently, in iOS 9 there is a bug which makes the -webkit-user-select: none; not work. There is a plugin which fixes this

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

    Thanks to Frederik Wessberg https://stackoverflow.com/a/32737049/741850

提交回复
热议问题