Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3012] iOS Kitchen Sink: Table View Pull to Refresh Broken by #2975

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T03:34:45.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsdefect, ios, kitchensink, regression, reported-1.6.0, rplist
ReporterDawson Toth
AssigneeReggie Seagraves
Created2011-04-15T03:34:44.000+0000
Updated2017-03-03T06:21:58.000+0000

Description

Problem

Our Pull to Refresh example no longer works because of the changes in #2975, due to scrollEnd firing after the table has stopped moving, as opposed to when the user lifts their finger.

Affected File

Resources/examples/table_view_pull_to_refresh.js, lines 144-157

Fix

The condition "&& e.contentOffset.y <= -65" on line 146 is not necessary, and is stopping the sample from working. Removing it will allow pull to fresh to function again.

Aesthetic Issue

Because scrollEnd is firing after the table stops moving, with the fix above, the table view will return to the top of the table after getting pulled down far enough and released. scrollEnd then fires, and the "Reloading..." status is shown, pushing the table back down. There may be another approach that would avoid the unnecessary table movement this results in.

Associated Helpdesk Ticket

http://developer.appcelerator.com/helpdesk/view/69331">http://developer.appcelerator.com/helpdesk/view/69331

Comments

  1. Dawson Toth 2011-04-15

    Forgot to assign... let me know if this should get kicked to someone else, Kevin. I'm assigning to you based on a hunch.

  2. Anthony Webb 2011-04-15

    Is there any events that still fire when a users finger is lifted?

  3. Thomas Huelbert 2011-04-15

    duping against #3006

  4. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source