New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 696776 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

touch-action: pan-left/pan-right/pan-up/pan-down still allow scrolling in opposite direction

Reported by splinte...@gmail.com, Feb 27 2017

Issue description

Steps to reproduce the problem:
1. open test case (or view online https://patrickhlauke.github.io/touch/touch-action-scrolling/)
2. go to the touch-action: pan-right example
3. start scrolling right, then while still keeping finger on screen attempt to scroll left

What is the expected behavior?
as touch-action: pan-right is set, it should only allow scrolling right

What went wrong?
while scrolling left is prevented when making a fresh scroll gesture, it is possible to start an allowed scroll right, and then - while keeping finger on the screen - scroll the opposite way.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 58  Channel: stable
OS Version: 6
Flash Version: 

same happens in Chrome stable. obviously same is true for the other directions (touch-action: pan-left / pan-up / pan-down)

 
see also video demonstration of the bug here https://www.youtube.com/watch?v=BzatGeT6wDY
Labels: Needs-Triage-M58
Cc: ram...@chromium.org
Components: Blink>Scroll
Labels: triage-te
Labels: -triage-te Restrict-View-Google M-58
Owner: aelias@chromium.org
Status: Assigned (was: Unconfirmed)
Able to repro with chrome stable '56.0.2924.87'from playstore and older stable build '54.0.2790.2'.
Cc: aelias@chromium.org
Owner: ----
Status: Available (was: Assigned)
Owner: dtapu...@chromium.org
Status: Assigned (was: Available)
Cc: rbyers@chromium.org
Status: WontFix (was: Assigned)
Patrick, this is explicitly allowed in the specification.

See https://w3c.github.io/pointerevents/#the-touch-action-css-property

Text is: "Once scrolling is started, the direction may be reversed by the user even if scrolls that start in the reversed direction are disallowed."
Labels: -Restrict-View-Google
No reason I can see for this bug to be restricted.

Yeah we had a debate about this, hopefully in a spec issue somewhere.  At the time the feeling was this made the most sense given the use cases and the restriction that you can't switch between scrolling and event handling mid-gesture.
Apologies, you're absolutely right...this is per spec, and I'm ashamed to admit I missed that (goes to show I'm still more familiar with PEv1 rather than v2). Sorry for the noise.

Sign in to add a comment