Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aswan opened this issue Mar 25, 2021 · 1 comment
Open

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

aswan opened this issue Mar 25, 2021 · 1 comment

Comments

@aswan
Copy link

aswan commented Mar 25, 2021

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
Copy link
Contributor

Crissov commented Mar 27, 2021

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:

  • 0: only taps or clicks and movements recognized, no gestures
  • 1: dragged mouse gestures pioneered by Opera, also made with stylus or single finger
  • 2: common finger gestures on touchscreens and trackpads, popularized by the original iPhone, including the requested pinch gestures
  • 3+: mostly swipe gestures as variants of 2-point gestures

@frivoal frivoal removed the mediaqueries-4 Current Work label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants