在流星线索应用程序iOS 9上的全局禁用放大镜

时间:2015-09-22 15:23:39

标签: css cordova meteor aero-glass loupe

iOS9_glass

我已经测试了几种解决方法来禁用带有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;
}

我错过了iOS 9的东西?

2 个答案:

答案 0 :(得分:11)

是的,它与iOS9有关。 由于您是Cordova用户,此插件将为您解决问题: https://github.com/EddyVerbruggen/cordova-plugin-ios-longpress-fix

在你的css中处理-webkit-user-select:none之前,它与UILongPressGestureRecognizer执行有关。

我希望这可以帮助你。

答案 1 :(得分:2)

Frederik提到的插件现已构建成cordova,请参阅https://github.com/apache/cordova-ios/pull/174

要将修正插入<preference name="SuppressesLongPressGesture" value="true" />启用到config.xml

相关问题