global disable magnifying glass on iOS 9 in meteor cordova app

前端 未结 2 527
野性不改
野性不改 2021-01-11 09:59

I have tested several workarounds to disable the annoying magnifying glass with css, but on my iOS9 meteor cordova build it appears for a moment and fades out after

相关标签:
2条回答
  • 2021-01-11 10:10

    Yes, it is related to iOS9. Since you are a Cordova user, this plugin will fix the problem for you: https://github.com/EddyVerbruggen/cordova-plugin-ios-longpress-fix

    It has to do with the UILongPressGestureRecognizer executing before handling the -webkit-user-select: none in your css.

    I hope this helps you out.

    0 讨论(0)
  • 2021-01-11 10:17

    The plugin Frederik mentioned is now build into cordova see https://github.com/apache/cordova-ios/pull/174

    To enable the fix insert <preference name="SuppressesLongPressGesture" value="true" /> into config.xml

    0 讨论(0)
提交回复
热议问题