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

statusTap event is not triggered until momentum scrolling is complete

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: cordova@7.0.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      The statusTap event isn't triggered until the momentum scrolling is complete.

      To reproduce:

      1. Create an app that has a natural scrolling body (not 100% height div with overflow-x set to "auto" and -webkit-overflow-scrolling set to "touch"). This means a standard WebView with body contents larger than one screen.
      2. Flick the screen to scroll and notice that momentum/inertial scroll triggers.
      3. During momentum scrolling, tap the status bar
      4. Note the statusTap event fired only after the scrolling has completely stopped.

      There isn't a great way to fix this since the events are triggered in cordova.js with a setTimeout. I have a PR available to fix this by adding a config option to StatusBar that enables the native scroll-to-top behavior.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lunaru Lu Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: