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

Windows: currentPage property of scrollableview.scrollend event is always 0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0, Release 6.3.0, Release 6.2.0
    • Fix Version/s: Release 7.0.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.2.1.GA, 7.0.0.v20170920153129

    • Story Points:
      5
    • Sprint:
      2017 Sprint 20 SDK

      Description

      Description

      When using the scrollend event, the currentPage event is always set to 0, it should be the index of the currently visible view

      var win = Ti.UI.createWindow();
      var view1 = Ti.UI.createView({ backgroundColor:'#123' });
      var view2 = Ti.UI.createView({ backgroundColor:'#246' });
      var view3 = Ti.UI.createView({ backgroundColor:'#48b' });
      var scrollableView = Ti.UI.createScrollableView({
        views:[view1,view2,view3],
        showPagingControl:true
      });
      scrollableView.addEventListener('scrollend', function(e) {
          console.log(e.currentPage)
      })
      win.add(scrollableView);
      win.open();
      

      Steps to reproduce
      1. Add to an existing app.js and build for Windows
      2. Scroll the view
      Actual

      When finishing scrolling the currentPage property is always 0

      Expected

      currentPage property should be index of the current view

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Gary Mathews
              Tester:
              Ewan Harris
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code