Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11823

Configuration Option "SuppressesLongPressGesture" Breaks iOS Simulator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.2.0
    • None
    • cordova-ios
    • iOS 9.3 Simulator configured to run as an iPhone 6

      Cordova CLI 6.2.0

    Description

      A Cordova app will not properly respond to input in the iOS simulator if the following option is set in config.xml:

      <preference name="SuppressesLongPressGesture" value="true" />

      Although elements in the web view will still have their clicked CSS states applied, JS events related to clicking do not function. For instance, clicking on a button will not submit it, even though the button's CSS might change. In the system logs, I found this statement repeated several times:

      Ignoring a longpress in order to suppress the magnifying glass.

      My personal theory is that the simulator counts every click as a longpress and so the config flag suppresses every click, not just the long ones.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Reubend Reuben Dunn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified