Re: [pointerevents] Imperative API to request suppression of panning and zooming

> Would having something like preventDefault on a passive event return a Promise be a reasonable workaround here? I.e. until the panning has started calling preventDefault on a passive touchmove event listener event will resolve the promise and prevent panning?

That's conceptually the idea.  We can't change the return value of `Event.preventDefault` so we need some new API.  And panning/zooming is intentionally not the "default action" of a pointer event, so to solve this for pointer events it shouldn't be associated with `preventDefault`.

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

Received on Friday, 8 September 2017 14:16:11 UTC