私は非常に奇妙な問題を抱えています。iOSのcordovaアプリで、アプリの任意の場所を長押しすると、ポップアップテキスト選択の虫眼鏡が表示されます。
例:
上部のバブルは画面の上部にロックされており、指を左右に動かすときはx位置に従います。
私は人々が私の問題を修正する必要があると言う次のCSSを追加しようとしました:
* {
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
-webkit-user-select: none;
}
これは役に立ちません。Webインスペクターで物事を見ると、このcssがすべてに正常に追加されていることが確認できます。私は通常のさまざまなバリエーションを試しましたがtouch-callout: none
、user-select: none
誰もが提案しましたが、何も役に立たないようです。
I have also tried to remove all javascript and all CSS except a simple variation of the above mentioned, and the magnifying glass still appears.
How can I get it to go away? Is there any plugin that can be causing this issue? Any help is much appreciated.
Cordova plugins:
Cordova version: 5.1.1 iPhone 5s with iOS version: 9.0.1
Thank you for that Automatico! Saved me from a lot more frustration.
Since then however it looks like that code has been merged into mainline cordova and can just be enabled by adding
<preference name="SuppressesLongPressGesture" value="true" />
to config.xml
それは私にとって完璧に機能しました!
これがコミットとそれをもたらしたメモです
https://github.com/apache/cordova-ios/commit/1ad9951c80dbf97281e763f5f27a9bc8852c0537
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加