Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

touch support can already be feature detected #14

Closed
mfoltzgoogle opened this issue Nov 4, 2019 · 2 comments
Closed

touch support can already be feature detected #14

mfoltzgoogle opened this issue Nov 4, 2019 · 2 comments
Assignees

Comments

@mfoltzgoogle
Copy link

If the use case is determining whether to add touch event handlers to your application, there are existing feature detection techniques that can help.

If the use case is a web application that wants to know which screen to place a window that requires touch, screen.touchSupport could be useful?

@michaelwasserman
Copy link
Member

michaelwasserman commented Dec 2, 2019

Thanks for the link! Yes, both techniques have good use cases:

  • Feature detection: optimize the content for touch-enabled (or not) displays where the window happens to be open.
  • screen.touchSupport js introspection: Check the properties of multiple displays, place a window on the one with touch support (e.g. for conference rooms with big non-touch video screens and small touch-enabled controller screens)

I'll add this better use case to the explainer.

@michaelwasserman michaelwasserman self-assigned this Dec 2, 2019
@michaelwasserman
Copy link
Member

I believe the updated explainer addresses the desire to select screens by their properties, including touch support.
Please let me know if the proposal's language could better explicitly describe that goal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants