Re: Pull Down to Refresh

Hi all,

Out of curiosity, is that something that might have been discussed at the 
Web input brainstorming face to face? This is really a challenge for both 
touch and pointer and solving this would really help out application 
developpers.

Christophe



From:   Sebastien Pereira2/France/IBM@IBMFR
To:     "public-touchevents@w3.org" <public-touchevents@w3.org>, 
Date:   04/14/2014 03:01 PM
Subject:        Pull Down to Refresh



So far it is a challenge to implement a cross browser PD2R feature. With 
touch events it is still possible by re-implementing the scrolling in 
JavaScript, which leads to heavy/complicated code and does not perform 
well in particular when scrollable data is large and complex. With pointer 
events and IE there is a solution based on snap points and chained 
scrolling [1] to provide PD2R using native scroll. 

The problem with pointer events on other browsers will be that when 
touch-action gives control to the user agent, there will be no way for the 
application developer to implement PD2R other than re-implementing the 
scrolling in JavaScriptt, using a touch-action value that prevents native 
scrolling. 

>From a user experience standpoint the pull down to refresh (or pull up to 
whatever) is becoming a de facto standard. It would be great if we could 
come up with a common solution to allow applications to use pointer events 
to implement PD2R with the benefit of the native scrolling. 

For example, we could imagine that when a user reaches the top (or the 
bottom in case of a Pull Up 2 something) : 
- a "pointerpull" event would be sent, 
- the user agent gives control back to the application and resume the 
sequence pointermove* > pointerup > pointerout 

[1] http://dwcares.com/pull-to-refresh-2 

Sebastien Pereira
IBM JS Team
https://github.com/ibm-js
---
33-1-5875-3479  (803479)
Sauf indication contraire ci-dessus:/ Unless stated otherwise above:
Compagnie IBM France
Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex
RCS Nanterre 552 118 465
Forme Sociale : S.A.S.
Capital Social : 655.732.332,20 ?
SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A 

Sauf indication contraire ci-dessus:/ Unless stated otherwise above:
Compagnie IBM France
Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex
RCS Nanterre 552 118 465
Forme Sociale : S.A.S.
Capital Social : 655.732.332,20 ?
SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A 

Received on Wednesday, 25 June 2014 08:31:52 UTC