Re: [pointerevents] Touch-action doesn't permit direction-specific scroll AND pinch-zoom

+1 for adding `pinch-zoom` to the spec.  It is imperative that 
developers are given a mechanism for disabling browser scroll without 
affecting the ability to pinch-to-zoom the viewport.  This is not only
 true when using single-directional scrolling but also when disabling 
native scrolling completely.

A common use case for this is an element that has its own custom 
handling of the pan-x and pan-y gestures, such as a chart that 
implements its own panning or rubber-band zoom.  In order to prevent 
native scrolling of its ancestor(s) the element needs to have a 
`touch-action` that prevents scrolling in both directions.  The way 
the spec is currently written it is impossible to do this without also
 disabling zooming of the viewport.  In Edge, however, it’s easy - 
just use `touch-action: pinch-zoom double-tap-zoom`, and the element 
is zoomable, but not scrollable.

Name it what you will (`pinch-zoom` is a fine name) but this 
functionality must exist for the pointerevents spec to be practically 
useful.  Ideally one should also be able to disable pinch and 
double-tap zoom separately (rather than just having a single `zoom`) 
since they are separate gestures.

I develop javascript frameworks at Sencha, and not having the ability 
to specify zoomability separately from scrollability on pointerevents 
devices will be disastrous for our frameworks, as well as any others 
that use direct manipulation of canvas-based drawings.  Fortunately we
 have not yet had to deal with this because the only browser currently
 implementing pointerevents (IE/Edge) supports the convenient 
`pinch-zoom` and `double-tap-zoom` touch actions.

-- 
GitHub Notification of comment by pguerrant
Please view or discuss this issue at 
https://github.com/w3c/pointerevents/issues/29#issuecomment-227597957 
using your GitHub account

Received on Tuesday, 21 June 2016 23:02:09 UTC