Skip to content
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

Should we add a firesPointerEvents property? #17

Open
jacobrossi opened this issue Jul 13, 2015 · 2 comments
Open

Should we add a firesPointerEvents property? #17

jacobrossi opened this issue Jul 13, 2015 · 2 comments

Comments

@jacobrossi
Copy link

Since there are some UI Events that fire pointer events and some that don't, do we want a firesPointerEvents property for completeness?

@jacobrossi
Copy link
Author

Likewise, firesMouseEvents might be useful for scenarios such as knowing if an Enter keypress is going to produce a click event.

@RByers
Copy link
Member

RByers commented Jul 13, 2015

Are you suggesting that you'd get a different InputDevice object depending on context (event target, etc.)? Or do the properties on a given device change with context (i.e. the keyboard device has a firesMouseEvents that becomes true briefly after hitting space on a checkbox). Modeling after the APIs in other OSes, I expected we'd want something context-free (eg. Imagine an API to enumerate all devices like we've discussed before in PEWG). Maybe you're talking about new properties of a UIEvent, rather than other properties of InputDevice?

Still, I wondered if (static) properties like those might be valuable InputDevice (certainly "is this a pointer" from the point of view of PE). I don't have particularly compelling scenarios off the top of my head though, so I was trying hard to keep the first rev very focused. See the brainstorm doc in the readme for more API ideas from various folks.

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

No branches or pull requests

2 participants