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

Pen Button Events #237

Open
gked opened this issue Jul 3, 2019 · 2 comments
Open

Pen Button Events #237

gked opened this issue Jul 3, 2019 · 2 comments
Labels

Comments

@gked
Copy link

gked commented Jul 3, 2019

Moving this issue into UI events as it seems to be a more appropriate place for it. @garykac let me know if you disagree.

To reiterate though:
Today, it is impossible for a web app to detect when an user presses the top button on a surface pen. Native apps like PowerPoint can register for pen button events to, for example, advance a slide show. Web PowerPoint should be able to do the same.

Is there any opposition to standardizing events such as penbuttonclick, penbuttondblclick, penbuttonpressandhold to enable such scenarios? Are there standards already being discussed that are applicable?

@snianu as FYI

@wrightwriter
Copy link

this would be awesome for drawing apps

@patrickhlauke
Copy link
Member

i'd need to test this, but I think it's already possible to detect presses of the eraser button on surface pen by checking pointermove events with a button value of 5? https://w3c.github.io/pointerevents/#the-button-property

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

No branches or pull requests

4 participants