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

On some android devices 'force' is being returned as 1 only in change method. #67

Closed quizzy closed 6 years ago

quizzy commented 7 years ago

On some android devices, the force parameter for the change method always returns as 1 and 1 only - has this happened to anyone else? (devices tested were Sony Xperia Android 6.0.1 and a Samsung device). I also tried testing on a Wileyfox Swift 2 - android - chrome, which doesn't seem to have triggered at all.

I'm unable to get direct access to these devices right now, but if you need more information from me let me know and I'll try and get a hold of them with the specs etc.

Thanks @stuyam.


Please provide information about the device you are seeing the issue on Device is a Sony Xperia Operating system is Android 6.0.1 Browser is Chrome

stuyam commented 7 years ago

Added some related references where similar conversations have been had before but not yet resolved. Thanks for posting this issue. 😄

dalisoft commented 7 years ago

This issue should be resolved. When use 3D touch in Android Chrome works, but target all changing from 0 to 1 in just less than 1sec. Polyfill time also not works

dalisoft commented 7 years ago

I have real access devicd. Or you can use Browserstack. I am use service as free. Free for open source projects as Pressurejs is free and open source

stuyam commented 7 years ago

I will have to check with Browserstack, I have access to it. However last I checked there wasn't an option to adjust the force applied to the a screen through Browserstack.

dalisoft commented 7 years ago

Pressurejs works best on real 3D touch supported device. I recommend Browserstack for android testing

stuyam commented 6 years ago

It's been too long but Im circling back and going to get this fixed. Was able to reproduce.

dalisoft commented 6 years ago

I there to test

dalisoft commented 6 years ago

I need this plug-in, but i need cross-device support, even in Chrome

stuyam commented 6 years ago

This is fixed in the latest release v2.1.2 https://github.com/stuyam/pressure/releases/tag/v2.1.2 Give it a try 👍

sbormann commented 5 years ago

I'm sorry, but it is still not working for some android-devices. Just tested it on Galaxy S7 via Browserstack and "All" and "Pointer event" jumps directly from zero to 1.

dalisoft commented 5 years ago

@sbormann look at http://forceify.js.org