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

MobileWeb: ScrollView - scrolls past bound and sometimes does not decelerate correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.0.0
    • Component/s: MobileWeb
    • Labels:
    • Environment:

      TiSDK 2.2.0v20120723112115
      Chrome Version 20.0.1132.57
      IE9

      Description

      ScrollView snaps past its bound in Chrome and IE9

      When the user drags rapidly to scroll down (does not always happen, but pretty consistent),
      the scrollview will glitch and not stop. It stops finally at the bottom but has a gap at the bottom instead
      of snapping to it's correct final destination.

      Steps to reproduce:

      1. Use the code below in app.js
      2. Run with chrome or IE9
      3. Drag the white scrollview to drag upwards
      4. Repeat until it sticks with a noticeable gap at the bottom.

      Code:

      var win = Ti.UI.createWindow({
          backgroundColor:'#555'
      });
      var scrollView = Ti.UI.createScrollView({
      	contentWidth: 'auto',
      	contentHeight: 'auto',
      	showVerticalScrollIndicator: true,
      	showHorizontalScrollIndicator: true,
      	height: '80%',
      	width: '80%',
      	borderWidth: 1,
      	borderColor: '#000'
      });
      var view = Ti.UI.createView({
      	borderWidth: 1,
      	borderColor: '#F00',
      	backgroundColor:'#FFFFFF',
      	borderRadius: 10,
      	top: 10,
      	height: '200%',
      	width: 1000
      });
      scrollView.add(view);
      win.add(scrollView);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhughes Bryan Hughes
                Reporter:
                amiller Alexander Miller
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code