New issue
Advanced search Search tips

Issue 844493 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

'vertical-scroll' should keep horizontal scroll blocked when 'touchmove' is canceld

Project Member Reported by ekaramad@chromium.org, May 18 2018

Issue description

Currently the update for effective touch action can only be sent to browser if the renderer is handling a TouchStart. For 'vertical-scroll' policy we need the update to be delayed to after handling scrolling blocking touch events. This does not work for first 'touchmove' and therefore we are now sending it after 'touchstart'.

We should revisit this to support proper implementation of 'vertical-scroll' for 'touchmove'.
 
Also, potentially, sending an update to browser might take too long and the TouchAction might will be assumed as 'auto'. This might cause issues if event handlers (whether preventing or not) take too long and the frame has had an effective touch action which was not 'auto', say 'pan-x pan-y'.

As Rob suggested one idea could be to potentially send touch action update twice; once a tentative one and then a restrictive one in case one of the handlers prevent defaults touch.

Also, if fixing 'touchmove' using 'touch-action' is problematic, we might eventually just force the 'touchmove' handlers as passive.

Sign in to add a comment