w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.35k stars 641 forks source link

[mediaqueries-5] query for availability of pan/zoom gestures #6148

Open aswan opened 3 years ago

aswan commented 3 years ago

At Figma, most of our users pan and zoom the canvas inside our app using trackpad gestures. But we would like to offer a separate UI affordance for pan/zoom that only appears for users who don't have a trackpad. Or, to put that in more generic terms, it would be useful to be able to write a media query that determines where the user's input device supports pan/zoom gestures. There doesn't appear to be an existing query that reliably covers this scenario.

Crissov commented 3 years ago

MQ4 MQ5

I’m assuming that these would be values of a more general gesture query. Perhaps, this could be generalized to the number of fingers/points that can be tracked distinctively for recognizing gestures: