Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4166] Scroll when not dragging a Table View

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-07-22T15:37:50.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-28
ComponentsiOS
Labelsn/a
ReporterDawson Toth
AssigneeIngo Muschenetz
Created2011-05-20T15:13:54.000+0000
Updated2017-03-21T18:26:29.000+0000

Description

Quick question for the iOS team... An enterprise customer sent in pull request 85 on Titanium Mobile a while ago https://github.com/appcelerator/titanium_mobile/pull/85 This makes it so the "scroll" event of a table view fires after the user has stopped dragging the table. But taking this as is would break existing code -- the event would fire more than anticipated, and it would operate inconsistently with Android (right now, they work the same). So... my idea is we add a flag to let the user trigger this behavior. Something like "fireScrollOnlyWhenDragging". This defaults to false, but can be set to true on a particular table view. That would let us...
if (scrollView.isDragging || !fireScrollOnlyWhenDragging) { ... }
Resulting in a happy client and a consistent cross platform experience. Thoughts?

Attachments

FileDateSize
4166.js2011-07-21T14:37:16.000+0000327

Comments

  1. Dawson Toth 2011-05-25

    I duplicated [TIMOB-3436](http://appc.me/TIMOB-3436) here.
  2. Stephen Tramer 2011-06-28

    Going to reject the pull request (messy, breaks parity with Android, etc.) and reschedule for 1.8.0 as per RLS.
  3. Stephen Tramer 2011-07-14

    Changed fix-version after merge to 1_7_X
  4. Stephen Tramer 2011-07-14

    Whoops, wrong ticket
  5. Stephen Tramer 2011-07-21

    Test app. BEHAVIOR BEFORE FIX: - Scroll events are not fired any more as soon as finger is lifted and dragging ends BEHAVIOR AFTER FIX: - Scroll events are fired as long as the tableview content is scrolling, including AFTER dragging ends
  6. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source