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 descriptionSteps 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)
,
Feb 28 2017
,
Feb 28 2017
,
Mar 1 2017
Able to repro with chrome stable '56.0.2924.87'from playstore and older stable build '54.0.2790.2'.
,
Mar 1 2017
,
Mar 1 2017
,
Mar 1 2017
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."
,
Mar 1 2017
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.
,
Mar 1 2017
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 |
||||||||
Comment 1 by splinte...@gmail.com
, Feb 27 2017