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

Use the Pointer Events API #1

Open
bates64 opened this issue Feb 24, 2017 · 3 comments
Open

Use the Pointer Events API #1

bates64 opened this issue Feb 24, 2017 · 3 comments

Comments

@bates64
Copy link

bates64 commented Feb 24, 2017

For some reason this project uses the Safari Force Touch API or something... why? The standardized API for detected pointer events, is, of course, the Pointer Events API... and it supports pressure. It works in all browsers, including IE 10... except Safari doesn't support it yet, obviously. Thanks, Apple!

@towerofnix
Copy link
Owner

Quoting sidebar:

Sidebar note

But thanks for the issue, I've added it to a milestone so I can remember to do this! 🐌

@towerofnix towerofnix self-assigned this Feb 24, 2017
@bates64
Copy link
Author

bates64 commented Feb 24, 2017

Couldn't you, like, fallback to the Safari API and use the Pointer Event .pressure property when its available now? 📦

@towerofnix
Copy link
Owner

No, because I can't test it. The only browser that tracks MacBook pressure input is Safari, and it only sends it through its own API.

Say what you will, or "USE PRESSURE.JS 😠", but I'm not going to send off any untested code to the internets!

OTOH, I'll update the milestone. Really I should do this when any browser supports the normal pressure API with MacBooks, okay? Because then I can test it.

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

2 participants