stuyam / pressure

:point_down::boom: JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.
https://pressurejs.com
MIT License
2.91k stars 98 forks source link

Force Touch not working properly Safari 13 #81

Closed zanderp25 closed 3 years ago

zanderp25 commented 4 years ago

When I use force touch, it reverts to polyfill. When I go to the 'Pressure Change' section on the website, the "Targets All" bar uses polyfill, but the 'Force Touch' bar works as it should.

Edit: It still does not work, probably has something to do with the new Safari 13 update

Edit 2: Still does not work in Safari 14


Device: 2017 Apple MacBook Pro OS: macOS Mojave 10.14.6 - macOS Catalina 10.15.2 Browser: Safari 13.0.1 - Safari 14.0

MickL commented 4 years ago

Same here on macOS Catalina and Magic Trackpad 2. I tested Chrome, Safari and Firefox all show "Your device does not support force touch or 3d touch so Pressure.js has fallen back to the polyfill.".

Safari Targets All -> Not working Targets ONLY Force Touch (mouse) -> Working

Chrome Targets All -> Not working Targets ONLY Force Touch (mouse) -> Not working

Firefox Targets All -> Not working Targets ONLY Force Touch (mouse) -> Not working

rasmussehlin commented 4 years ago

I'm just here to say that I get the same result. I'm on a Macbook Pro. "Targets All" falls back to polyfill while "Targets ONLY Force Touch (mouse)" works as expected. Safari 13.1.2

foxt commented 3 years ago

Still having this issue. Pressure still works on iOS though.

Pointer events always return a pressure of 0

image

WebKit events work.

image
zanderp25 commented 3 years ago

Update: I have updated to Safari 14.0 for macOS and it still doesn't work

stuyam commented 3 years ago

Released in: https://github.com/stuyam/pressure/releases/tag/v2.2.0