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

iOS: Redefine "scroll" event in ScrollableView, and add "scrollEnd"

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 2.0.1
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Ti Mobile SDK

      Description

      The ScrollView class has a scroll event which is fired repeatedly during scrolling. However, the ScrollableView class does not have anything like this.

      We need an event for ScrollableView s that informs us when a ScrollableView is being moved. Tragically, the scroll event for ScrollableViews already does something else – it fires when the whole view has been scrolled to another page.

      So, I suggest we call the event scrolling. It will be emitted continuously as the view is scrolled, and will contain such properties as

      • currentPage - currently active page index
      • currentPageAsFloat - currently active page index as a float, so if halfway between pages, this will have a value of 0.5
      • view - currently active view

      I'm working on an implementation of this and will pull request the iOS implementation, docs, and tests within the next couple of days.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                rfranknj Russell Frank
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code