View Single Post
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#485
Originally Posted by kbyork View Post
Its great that the pull-down refresh is working.

...please don't shoot me when I tell you that it 'refreshes' too easily...

I see two small problems with the pull-down refresh:
  • While you are scrolling up and down through your CONTACTS or INBOX; you do not know that you have reached the top until you scroll into the blank area.
    Which means you have a good chance of triggering the refresh.
  • Doing a flicking action, scrolling continues after the user has stopped touching it, and this can also accidentally cause a refresh.

For the first, we need some kind of TOP-OF-LIST marker.

For the second, I'm hoping 'Flickable.DragOverBounds' is the answer.
I did some Googling and found:
The boundsBehavior can be one of:
  • Flickable.StopAtBounds - the contents can not be dragged beyond the boundary of the flickable, and flicks will not overshoot.
  • Flickable.DragOverBounds - the contents can be dragged beyond the boundary of the Flickable, but flicks will not overshoot.
  • Flickable.DragAndOvershootBounds (default) - the contents can be dragged beyond the boundary of the Flickable, and can overshoot the boundary when flicked.
Hmm... I see your point.
Would it be simpler if I were to not refresh unless the list is kept pulled down for more than one second?
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.