Detect hard press iOS with JavaScript -


this question has answer here:

so wondering new hard press detection on newer ios devices, possible detect such thing without being actual app?

by this, mean possible detect using javascript or of sorts. frank, don't see relating question on so, @ least far web programming concerned.

to state hypothesis, doubt it's possible @ i'm sure it's hardware event isn't passed forward through safari (or whatever browser) javascript engine.

simply curious question, answers appreciated. in advance.

regards, emanuel

edit: here's tl;dr of other answer: no, not ios; desktop forcetouch trackpad. save people time. here's catch: according this, safari app supports using new api, other browsers yet support it.

i did not test it, because don't have iphone 6s or macbook forcetouch-trackpad, should work.

there demo on github: https://github.com/freinbichler/3d-touch


Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -