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

Force value out of range #82

Open
urikjaro opened this issue Nov 19, 2019 · 1 comment
Open

Force value out of range #82

urikjaro opened this issue Nov 19, 2019 · 1 comment

Comments

@urikjaro
Copy link

urikjaro commented Nov 19, 2019

During our test we have received force (pressure) values above 1.0 like 1.2 or 1.777...
The API states that values can range from 0....1.

change: function(force, event){
    // this is called every time there is a change in pressure
    // force will always be a value from 0 to 1 on mobile and desktop
  },

The user agent string is:
"Mozilla/5.0 (Linux; Android 9; EML-L29 Build/HUAWEIEML-L29; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.92 Mobile Safari/537.36"
which would point to Huawei P20.
Unfortunately I do not have more info, since this was only intercepted on our backend, without the access to the device.

@Lonzak
Copy link

Lonzak commented Nov 19, 2019

We have the same problem.
Is there a way to get the minimum and maximum values? In that case we could remap the range back to 0...1.

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

No branches or pull requests

2 participants