Dud*_*ude 14 css loupe aero-glass cordova meteor
我已经测试了几种解决方法,用css禁用恼人的放大镜,但是在我的iOS9流星线上构建它会出现一段时间并在几毫秒之后淡出.
它正在iOS 8上运行,但现在没有在iOS 9上使用这个css代码:
body, body * {
-webkit-user-select: none !important;
user-select: none !important;
-webkit-user-callout: none !important;
-webkit-touch-callout: none !important;
}
input, textarea {
-webkit-user-select: text !important;
user-select: text !important;
-webkit-user-callout: default !important;
-webkit-touch-callout: default !important;
}
*{
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none;
-webkit-user-drag: none;
-webkit-user-modify: none;
}
Run Code Online (Sandbox Code Playgroud)
我错过了iOS 9的东西?
Fre*_*erg 11
是的,它与iOS9有关.由于您是Cordova用户,此插件将为您解决问题:https: //github.com/EddyVerbruggen/cordova-plugin-ios-longpress-fix
它与您在处理css中的-webkit-user-select:none之前执行的UILongPressGestureRecognizer有关.
我希望这能够帮到你.
Frederik 提到的插件现在已内置到 cordova 中,请参阅https://github.com/apache/cordova-ios/pull/174
要启用修复<preference name="SuppressesLongPressGesture" value="true" />插入config.xml
| 归档时间: |
|
| 查看次数: |
3640 次 |
| 最近记录: |