shake.js icon indicating copy to clipboard operation
shake.js copied to clipboard

What are the bounds of the threshold parameter?

Open checkerplate-bryce opened this issue 10 years ago • 2 comments

The docs have a default threshold of 15. Is there a minimum / maximum number, eg: between 0 to 100?

Also, what are some mappings to values? Eg: 30 requires a "vigorous shake", and 10 is "any slow rotation"

checkerplate-bryce avatar Nov 25 '15 22:11 checkerplate-bryce

Whatever works for you - the default of 15 works for most mobile device sizes. You may need to adjust it for larger / heavier devices to be more vigorous.

alexgibson avatar Nov 26 '15 07:11 alexgibson

I think the range of threshold should be written in the documentation @alexgibson

avrebarra avatar Feb 07 '17 22:02 avrebarra