shake.js
shake.js copied to clipboard
What are the bounds of the threshold parameter?
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"
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.
I think the range of threshold should be written in the documentation @alexgibson