Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25420

Android: ScrollView does not fire "longclick" events.

    Details

    • Story Points:
      1

      Description

      Summary:
      An Android ScrollView's scrollable content area never fires a "longclick" event.

      Steps to reproduce:

      1. Run the below test code on an Android device.
      2. Tap and hold your finger on the app window for a couple of seconds.

      var window = Ti.UI.createWindow();
      var scrollView = Ti.UI.createScrollView();
      scrollView.addEventListener('longclick', function(e) {
      	alert('longclick');
      });
      window.add(scrollView);
      window.open();
      

      Result:
      No alert is displayed for the "longclick" event.

      Expected Result:
      An alert displaying "longclick" should be displayed when the event has been received.

      Work-Around:
      The "longpress" event is supported. This event can be used instead.

      Note:
      On Android, the "longpress" and "longclick" events are normally fired back-to-back.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5897
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code